From 29882ffc534abcb2d72ebe7838f0d9304aef66d7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jean-Philippe=20Bruy=C3=A8re?= Date: Mon, 27 Jan 2020 16:06:52 +0100 Subject: [PATCH] add several NUnit tests --- Crow.sln | 2 ++ unitTests/Program.cs | 32 ++++++++++++++++++++++++-------- unitTests/unitTests.csproj | 2 ++ 3 files changed, 28 insertions(+), 8 deletions(-) diff --git a/Crow.sln b/Crow.sln index df89d910..0c8f469a 100644 --- a/Crow.sln +++ b/Crow.sln @@ -39,6 +39,8 @@ Global {1E5C7065-28F9-4A1A-A2FB-DB5E03A63CB3}.Release|Any CPU.ActiveCfg = Release|Any CPU {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Release|Any CPU.ActiveCfg = Release|Any CPU + {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Debug|Any CPU.Build.0 = Debug|Any CPU + {0CC6DFAB-2E4A-4786-976C-89053D5EA6A2}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(MonoDevelopProperties) = preSolution Policies = $0 diff --git a/unitTests/Program.cs b/unitTests/Program.cs index 8fad7994..0211c5a2 100644 --- a/unitTests/Program.cs +++ b/unitTests/Program.cs @@ -6,21 +6,37 @@ using NUnit.Framework; namespace unitTests { [TestFixture] - public class Tests + public class Instantiator { - - void instanciate () + [Test] + public void Widget () { - Instantiator.CreateFromImlFragment (null, @""); + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"") + , "test itor failed"); + } + [Test] + public void Label () + { + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"