예제 #1
0
        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);
        }
예제 #2
0
        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));
        }