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