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