public void Transform_Returns_Null_For_Null_Values() { const string value = null; var transformer = new UppercaseTransformerAttribute(); var result = transformer.Transform(value, null, null); Assert.IsNull(result); }
public void Transform_Returns_Uppercase() { const string value = "blah blah"; const string expected = "BLAH BLAH"; var transformer = new UppercaseTransformerAttribute(); var result = transformer.Transform(value, null, null); Assert.AreEqual(expected, result); }