Exemplo n.º 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);
        }
Exemplo n.º 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));
        }