diff --git a/WebSite/.idea/workspace.xml b/WebSite/.idea/workspace.xml
index c45644f9..92302460 100644
--- a/WebSite/.idea/workspace.xml
+++ b/WebSite/.idea/workspace.xml
@@ -4,7 +4,7 @@
+var integers = new int[] { 1, 2, 3, 4, 5, 666 };
+Check.That(integers).Contains(3, 5, 666);
+
+integers = new int[] { 1, 2, 3 };
+Check.That(integers).IsOnlyMadeOf(3, 2, 1);
+
+var guitarHeroes = new[] { "Hendrix", "Paco de Lucia", "Django Reinhardt", "Baden Powell" };
+Check.That(guitarHeroes).ContainsExactly("Hendrix", "Paco de Lucia", "Django Reinhardt", "Baden Powell");
+
+var camus = new Person() { Name = "Camus" };
+var sartre = new Person() { Name = "Sartre" };
+Check.That(camus).IsNotEqualTo(sartre).And.IsInstanceOf<Person>();
+
+var heroes = "Batman and Robin";
+Check.That(heroes).Not.Contains("Joker").And.StartsWith("Bat").And.Contains("Robin");
+
+int? one = 1;
+Check.That(one).HasAValue().Which.IsPositive().And.IsEqualTo(1);
+
+const Nationality FrenchNationality = Nationality.French;
+Check.ThatEnum(FrenchNationality).IsNotEqualTo(Nationality.Korean);
+
+string motivationalSaying = "Failure is mother of success.";
+Check.That(motivationalSaying).IsNotInstanceOf<int>();
+
+ With NFluent, you can also write checks like this:
+
+
+var persons = new List<Person>
+ {
+ new Person { Name = "Thomas", Age = 38 },
+ new Person { Name = "Achille", Age = 10, Nationality = Nationality.French },
+ new Person { Name = "Anton", Age = 7, Nationality = Nationality.French },
+ new Person { Name = "Arjun", Age = 7, Nationality = Nationality.Indian }
+ };
+
+Check.That(persons.Properties("Name")).ContainsExactly("Thomas", "Achille", "Anton", "Arjun");
+Check.That(persons.Properties("Age")).ContainsExactly(38, 10, 7, 7);
+Check.That(persons.Properties("Nationality")).ContainsExactly(Nationality.Unknown, Nationality.French, Nationality.French, Nationality.Indian);
+
+// more fluent than the following classical NUnit way, isn't it?
+// CollectionAssert.AreEquivalent(persons.Properties("Age"), new[] { 38, 10, 7, 7 });
+
+// it's maybe even more fluent than the java versions
+
+// FEST fluent assert v 2.x:
+// assertThat(extractProperty("name" , String.class).from(inn.getItems())).containsExactly("+5 Dexterity Vest", "Aged Brie", "Elixir of the Mongoose", "Sulfuras, Hand of Ragnaros", "Backstage passes to a TAFKAL80ETC concert", "Conjured Mana Cake");
+
+// FEST fluent assert v 1.x:
+// assertThat(inn.getItems()).onProperty("name").containsExactly("+5 Dexterity Vest", "Aged Brie", "Elixir of the Mongoose", "Sulfuras, Hand of Ragnaros", "Backstage passes to a TAFKAL80ETC concert", "Conjured Mana Cake");
+
+ Or like this:
+
+
+// Works also with lambda for exception checking
+Check.That(() => { throw new InvalidOperationException(); }).Throws<InvalidOperationException>();
+
+// or execution duration checking
+Check.That(() => Thread.Sleep(30)).LastsLessThan(60, TimeUnit.Milliseconds);
+
NFluent is also extensible to your specific needs
@@ -249,20 +313,34 @@ We aim to release the most fluent .NET assertion lib ever ;-)
Indeed:
Check.That
)..Should()
.... why don't they choose Must instead?!?). And thus, you'd rather rely on a stronger semantic for your checks (i.e. NFluent's Check.That
).
new[] { 1, 2, 3 }.Should().Contain(item => item > 3, "at least {0} item should be larger than 3", 1);
+
+ +var myArray = new[] { 1, 2, 3 }; + +myArray.Should().Contain(item => item > 3, "at least {0} item should be larger than 3", 1);+
+Check.That(myArray).IsGreaterThan(3);+
new[] {...}
as a method argument like does another famous "fluent" library?
new[] {...}
as a method argument like this?!?
- ints.Should().Have.SameSequenceAs(new[] { 1, 2, 3 });
-
+
+
+myArray.Should().Have.SameSequenceAs(new[] { 1, 2, 3 });
+Check.That(myArray).ContainsExactly(1,2,3);
+
+