Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public void LowerText()
        {
            var returnVal = converter.Convert("Hello World", null, null, null);

            Assert.AreEqual("hello world", returnVal);
        }