4 namespace ElmSharp.Test
6 public class BackgroundTest2 : TestCaseBase
8 public override string TestName => "BackgroundTest2";
9 public override string TestDescription => "To test basic operation of Background";
11 public override void Run(Window window)
13 Background bg1 = new Background(window)
18 Background bg2 = new Background(window)
20 Color = new Color(60, 128, 255, 100)
22 Show(bg1, 0, 0, 500, 500);
23 Show(bg2, 100, 100, 500, 500);
25 Console.WriteLine("bg1.Color : {0}", bg1.Color.ToString());
26 Console.WriteLine("bg2.Color : {0}", bg2.Color.ToString());
29 void Show(Background bg, int x, int y, int w, int h)