public void ToStringReturnsPrivateDataInPrivateMode() { var value = "testData"; var privateString = new PrivateString { PrivateValue = value }; var actual = privateString.ToString(SecureDataMode.Private); Assert.AreEqual(value, actual); }
public void ToStringReturnsPublicData() { var value = "testData"; var privateString = new PrivateString { PrivateValue = value }; var actual = privateString.ToString(); Assert.AreNotEqual(value, actual); }