public void Should_throw_an_exception() { var message = new MessageWithMissingData { Secret = new WireEncryptedString { Value = "The real value" } }; Assert.Throws <InvalidOperationException>(() => mutator.MutateIncoming(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); }
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"} }; Assert.Throws<InvalidOperationException>(() => mutator.MutateIncoming(message)); }