public void ConvertFromGeneratesPrivateString() { var converter = new PrivateStringTypeConverter(); var value = "testData"; var actual = converter.ConvertFrom(value); Assert.IsInstanceOf<PrivateString>(actual); var privateString = actual as PrivateString; Assert.AreEqual(value, privateString.PrivateValue); }
public void ConvertFromHandlesNull() { var converter = new PrivateStringTypeConverter(); var actual = converter.ConvertFrom(null); Assert.IsNull(actual); }