diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-05-05 16:51:58 +0200 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2020-05-10 00:50:02 +0200 |
| commit | 0b0c8f496d3874406d3b3f55ba33c0763dc2f4ba (patch) | |
| tree | a80799f9e1a3122578bcdecf2da96917e7d0302d /unitTests/TestBackend.cs | |
| parent | b1ccb02be5d186e4a8b1c6bec9284183ac352f06 (diff) | |
update unit tests
Diffstat (limited to 'unitTests/TestBackend.cs')
| -rw-r--r-- | unitTests/TestBackend.cs | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/unitTests/TestBackend.cs b/unitTests/TestBackend.cs index 5b9afeb1..4ad680e8 100644 --- a/unitTests/TestBackend.cs +++ b/unitTests/TestBackend.cs @@ -11,15 +11,15 @@ namespace unitTests public class TestInterface : Interface { public TestInterface (int width = 800, int height = 600) - : base (width, height, false) {} - public bool IsRunning { - get => Running; - set => Running = value; - } - protected override void InitSurface () - { + : base (width, height, false, false) { surf = new Crow.Cairo.ImageSurface (Crow.Cairo.Format.Argb32, ClientRectangle.Width, ClientRectangle.Height); } + bool isRunning; + public bool IsRunning { + get => isRunning; + set => isRunning = value; + } + } [TestFixture] public class TestBackend @@ -31,13 +31,6 @@ namespace unitTests { iFace = new TestInterface (800, 600); iFace.Init (); - iFace.IsRunning = true; - } - - [OneTimeTearDown] - public void Cleanup () - { - iFace.IsRunning = false; } //[SetUp] public void InitTest (){} |