コード例 #1
0
        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"}
                };

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