public void ToStringWithPrivateReturnsPrivateValue() { var testString = new PrivateString { PrivateValue = "hidden" }; Assert.AreEqual(testString.PrivateValue, testString.ToString(SecureDataMode.Private)); }
public void ToStringReturnsPublicValue() { var testString = new PrivateString { PrivateValue = "hidden" }; Assert.AreEqual(testString.PublicValue, testString.ToString()); }
public void PlusOperatorAddsPrivateValue() { PrivateArguments args = "test args"; args += new PrivateString { PrivateValue = "value" }; Assert.AreEqual(2, args.Count); Assert.AreEqual("test args ********", args.ToString()); }