public void Transform_LowerCaseText_UpperCaseTextReturned() { var value = "test"; var toUpperAttribute = new ToUpperAttribute(); var transformedValue = toUpperAttribute.Transform(value); Assert.AreEqual("TEST", transformedValue); }
public void Transform_EmptyString_EmptyStringReturned() { var value = String.Empty; var toUpperAttribute = new ToUpperAttribute(); var transformedValue = toUpperAttribute.Transform(value); Assert.AreEqual(String.Empty, transformedValue); }
public void Transform_NullValue_ExceptionIsThrown() { var toUpperAttribute = new ToUpperAttribute(); var transformedValue = toUpperAttribute.Transform(null); }