public void Should_throw_an_exception()
        {
            var message = new MessageWithMissingData
            {
                Secret = new WireEncryptedString {
                    Value = "The real value"
                }
            };

            Assert.Throws <InvalidOperationException>(() => mutator.MutateIncoming(message));
        }
예제 #2
0
        public void Should_throw_an_exception()
        {
            var message = new MessageWithMissingData
            {
                Secret = new WireEncryptedString {
                    Value = "The real value"
                }
            };

            var exception = Assert.Throws <Exception>(() => mutator.MutateIncoming(message));

            Assert.AreEqual("Encrypted property is missing encryption data", exception.Message);
        }
        public void Should_throw_an_exception()
        {

            var message = new MessageWithMissingData
                {
                    Secret = new WireEncryptedString {Value = "The real value"}
                };

            var exception = Assert.Throws<Exception>(() => mutator.MutateIncoming(message));
            Assert.AreEqual("Encrypted property is missing encryption data", exception.Message);
        }
예제 #4
0
        public void Should_throw_an_exception()
        {
            var message = new MessageWithMissingData
                {
                    Secret = new WireEncryptedString {Value = "The real value"}
                };

            Assert.Throws<InvalidOperationException>(() => mutator.MutateIncoming(message));
        }