From: Jean-Philippe Bruyère Date: Tue, 5 May 2020 14:51:58 +0000 (+0200) Subject: update unit tests X-Git-Tag: v0.9.5-beta~120 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=0b0c8f496d3874406d3b3f55ba33c0763dc2f4ba;p=jp%2Fcrow.git update unit tests --- diff --git a/Crow.sln b/Crow.sln index 20fc3366..48f3d69a 100644 --- a/Crow.sln +++ b/Crow.sln @@ -23,8 +23,6 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "unitTests", "unitTests\unit EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BasicTests", "Samples\BasicTests\BasicTests.csproj", "{7AEB6DD5-916E-4415-84E1-78EC6E5881CE}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testMSBuild", "Samples\testMSBuild\testMSBuild.csproj", "{B912DD88-F41B-428A-9784-E2CF265CE3DD}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -56,10 +54,6 @@ Global {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Debug|Any CPU.Build.0 = Debug|Any CPU {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Release|Any CPU.ActiveCfg = Release|Any CPU {7AEB6DD5-916E-4415-84E1-78EC6E5881CE}.Release|Any CPU.Build.0 = Release|Any CPU - {B912DD88-F41B-428A-9784-E2CF265CE3DD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {B912DD88-F41B-428A-9784-E2CF265CE3DD}.Debug|Any CPU.Build.0 = Debug|Any CPU - {B912DD88-F41B-428A-9784-E2CF265CE3DD}.Release|Any CPU.ActiveCfg = Release|Any CPU - {B912DD88-F41B-428A-9784-E2CF265CE3DD}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution Policies = $0 @@ -104,6 +98,5 @@ Global {56329D48-D382-4850-93DE-59C453894E8A} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} {91F1CE07-EECE-4F1D-A3EE-7239B563654A} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} {7AEB6DD5-916E-4415-84E1-78EC6E5881CE} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} - {B912DD88-F41B-428A-9784-E2CF265CE3DD} = {B2C7855A-2878-47FD-AD32-9A83DB4AB8C6} EndGlobalSection EndGlobal diff --git a/Crow/Crow.csproj b/Crow/Crow.csproj index 72424df9..5f29d798 100644 --- a/Crow/Crow.csproj +++ b/Crow/Crow.csproj @@ -4,7 +4,7 @@ netstandard2.0 $(CrowVersion) - $(CrowVersion) + 0.8.0 C# Rapid Open Widget Toolkit C.R.O.W. is a widget toolkit and rendering engine developed in C# with templates, styles, compositing, and bindings. MIT diff --git a/Directory.Build.props b/Directory.Build.props index de22b45a..1e727169 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -7,7 +7,7 @@ Jean-Philippe Bruyère 7.2 - 0.8.11 + 0.8.12 $(CrowVersion)-beta true 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 (){} diff --git a/unitTests/unitTests.csproj b/unitTests/unitTests.csproj index 5796ca76..0d0eefe1 100644 --- a/unitTests/unitTests.csproj +++ b/unitTests/unitTests.csproj @@ -9,7 +9,7 @@ - +