public void NotSendToSitesBasicNegativeCheck() { var i = new SendToSitesInvocation<MessageA> { Message = new MessageA(), Value = new[] { "SiteA" } }; var exp = new ExpectedNotSendToSitesInvocation<MessageA> { Check = (m, a) => false }; exp.Validate(i); }
public void NotSendToSitesBasicNegativeCheck() { var i = new SendToSitesInvocation <MessageA> { Messages = new[] { new MessageA() }, Value = new[] { "SiteA" } }; var exp = new ExpectedNotSendToSitesInvocation <MessageA> { Check = (m, a) => false }; exp.Validate(i); }
public void NotSendToSitesBasicNegative() { var i = new SendToSitesInvocation<MessageA> { Message = new MessageA(), Value = new[] { "SiteA" } }; var exp = new ExpectedNotSendToSitesInvocation<MessageA> { Check = (m, a) => true }; Assert.Throws<Exception>(() => exp.Validate(i)); }