diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-01-27 16:06:52 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2020-01-27 16:06:52 +0100 |
| commit | 29882ffc534abcb2d72ebe7838f0d9304aef66d7 (patch) | |
| tree | c5f7a2356c485639b8808b15691624f5afee04bd /unitTests/Program.cs | |
| parent | 199019201a399a93acaf90b6ccb4d52cede6b799 (diff) | |
add several NUnit testsappveyorNUnit
Diffstat (limited to 'unitTests/Program.cs')
| -rw-r--r-- | unitTests/Program.cs | 32 |
1 files changed, 24 insertions, 8 deletions
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, @"<Widget Background='Blue' Tag='{test}'/>"); + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<Widget/>") + , "test itor failed"); + } + [Test] + public void Label () + { + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<Label Text='this is a test'/>") + , "test itor failed"); + } + [Test] + public void TemplatedControl () + { + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<CheckBox IsChecked='false'/>") + , "test itor failed"); } - - [Test] - public void InstanciatorTest () + public void SimpleBinding () { - Assert.DoesNotThrow (instanciate, "test itor failed"); + Assert.DoesNotThrow (() + => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<Widget Background='Blue' Tag='{test}'/>") + , "test itor failed"); } } |