public void CheckRuleExecution2() { var messageOne = new MessageOne("sometext"); var result = false; Bouncer .ForExecution(() => messageOne) .Assert(x => x.Content == "othertext") .ExecuteOnSuccess(() => { result = true; }); Assert.IsFalse(result); }
public void CheckRuleExecution11B() { var result = false; Bouncer .ForExecution(() => MessageOneFailRegEx) .ForExecution(() => MessageOneOk) .Assert() .ExecuteOnSuccess(() => { result = true; }); Assert.IsFalse(result); }
public void CheckRuleExecutionDirectly2() { var messageOne = new AttributedSampleClass { MustBeLengthMin = "1" }; var result = false; Bouncer .ForExecution(() => messageOne) .ExecuteOnFailure(() => { result = true; }); Assert.IsTrue(result); }