public void Should_throw_exception() { var message = new MessageWithindexdProperties(); message[0] = MySecretMessage; message[1] = MySecretMessage; Assert.Throws <NotSupportedException>(() => mutator.MutateOutgoing(message)); }
public void Should_encrypt_the_property_correctly() { var message = new MessageWithindexdProperties { Secret = MySecretMessage }; message[0] = "boo"; message[1] = "foo"; mutator.MutateOutgoing(message); Assert.AreEqual("boo", message[0]); Assert.AreEqual("foo", message[1]); Assert.AreEqual(EncryptedBase64Value, message.Secret.EncryptedValue.EncryptedBase64Value); }
public void Should_throw_exception() { var message = new MessageWithindexdProperties(); message[0] = MySecretMessage; message[1] = MySecretMessage; Assert.Throws<NotSupportedException>(() => mutator.MutateOutgoing(message)); }