From 29882ffc534abcb2d72ebe7838f0d9304aef66d7 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Bruyère Date: Mon, 27 Jan 2020 16:06:52 +0100 Subject: add several NUnit tests --- unitTests/Program.cs | 32 ++++++++++++++++++++++++-------- 1 file changed, 24 insertions(+), 8 deletions(-) (limited to 'unitTests/Program.cs') 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, @"