public void ConvertProducesExpectedOutput(string input, string expected) { var converter = new UpperTextConverter(); 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 UpperText() { var returnVal = converter.Convert("Hello World", null, null, null); Assert.AreEqual("HELLO WORLD", returnVal); }