public void ConvertProducesExpectedOutput(string input, string expected) { var converter = new LowerTextConverter(); object output = null; var exception = Record.Exception(() => { output = converter.Convert(input, typeof(string), null, CurrentCulture); }); Assert.Null(exception); Assert.NotNull(output); Assert.Equal(expected, output); }
public void LowerText() { var returnVal = converter.Convert("Hello World", null, null, null); Assert.AreEqual("hello world", returnVal); }