public void Should_decrypt_the_property_correctly() { var message = new MessageWithPropertyWithBackingPublicField { MySecret = Create(), }; mutator.MutateIncoming(message); Assert.AreEqual(MySecretMessage, message.MySecret.Value); }
public void Should_match_the_property_correctly() { var message = new MessageWithPropertyWithBackingPublicField { MySecret = Create(), }; inspector .ScanObject(message) .ToList() .ForEach(x => x.Item2.SetValue(x.Item1, (EncryptedString)MySecretMessage)); Assert.AreEqual(MySecretMessage, message.MySecret.Value); }
public void Should_decrypt_the_property_correctly() { var message = new MessageWithPropertyWithBackingPublicField { MySecret = Create(), }; mutator.MutateIncoming(message); Assert.AreEqual(MySecretMessage, message.MySecret.Value); }
public void Should_match_the_property_correctly() { var message = new MessageWithPropertyWithBackingPublicField { MySecret = Create(), }; inspector .ScanObject(message) .ToList() .ForEach(x => x.Item2.SetValue(x.Item1, (WireEncryptedString)MySecretMessage)); Assert.AreEqual(MySecretMessage, message.MySecret.Value); }