aboutsummaryrefslogtreecommitdiffstatsci
path: root/unitTests/Program.cs
diff options
context:
space:
mode:
authorJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-01-28 07:24:29 +0100
committerJean-Philippe Bruyère <jp_bruyere@hotmail.com>2020-01-28 07:24:29 +0100
commit90015b93cd8d06f35d211ce65e2c9000e5fb4336 (patch)
tree9ad0b27290d02414dd0ab5a323bf522d54d0be7d /unitTests/Program.cs
parentc9a6611afb5943153b82ef8d1a9bad0c589baf8a (diff)
unit test with iFace updates (layouting/clipping/drawing), chmod clean
Diffstat (limited to 'unitTests/Program.cs')
-rw-r--r--unitTests/Program.cs30
1 files changed, 20 insertions, 10 deletions
diff --git a/unitTests/Program.cs b/unitTests/Program.cs
index 8fad7994..e809429d 100644
--- a/unitTests/Program.cs
+++ b/unitTests/Program.cs
@@ -6,22 +6,32 @@ using NUnit.Framework;
namespace unitTests
{
[TestFixture]
- public class Tests
+ public class Instantiator
{
+ [Test]
+ public void Widget ()
+ => Assert.DoesNotThrow (()
+ => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<Widget/>")
+ , "test itor failed");
- void instanciate ()
- {
- Instantiator.CreateFromImlFragment (null, @"<Widget Background='Blue' Tag='{test}'/>");
- }
+ [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 ()
- {
- Assert.DoesNotThrow (instanciate, "test itor failed");
- }
+ public void SimpleBinding ()
+ => Assert.DoesNotThrow (()
+ => Crow.IML.Instantiator.CreateFromImlFragment (null, @"<Widget Background='Blue' Tag='{test}'/>")
+ , "test itor failed");
}
}