public void ViewModelFieldToStringReturnsEmptyStringWhenValueIsNullTest() { var instance = new ModelFixture <string>(); Assert.IsTrue(instance.Value is null, "Value should be null."); Assert.IsTrue(instance.ToString() == string.Empty, "ToString() should return empty."); }
public void ViewModelFieldToStringTest() { var expectedValue = "expected value"; var instance = new ModelFixture <string>(expectedValue); Assert.IsTrue(expectedValue.Equals(instance.Value), "Value was wrong."); Assert.IsTrue(expectedValue.Equals(instance.ToString()), "ToString() was wrong."); }