Exemplo n.º 1
0
 void Ex04(IAssertionProperty assertedProperty, IAssertionProperty assertionProperty)
 {
     When("the ActualValueProperty asserts the AssertionProperty", () => assertedProperty.Assert(assertionProperty));
     Then <InvalidOperationException>($"{typeof(InvalidOperationException)} should be thrown");
 }
Exemplo n.º 2
0
 void Ex02(IAssertionProperty expected, IAssertionProperty actual)
 {
     Expect("The asserted result should be False", () => !expected.Assert(actual));
 }
Exemplo n.º 3
0
 void Ex03(IAssertionProperty assertionProperty)
 {
     Expect("The asserted result should be False", () => !assertionProperty.Assert(null));
 }
Exemplo n.º 4
0
 void Ex01(IAssertionProperty expected, IAssertionProperty actual, bool expectedResult)
 {
     Expect($"The asserted result should be {expectedResult}", () => expected.Assert(actual) == expectedResult);
 }