Example #1
0
        public void ConvertWithStringReturnsUppercaseString()
        {
            var converter = new StringToUppercaseConverter();

            var expected = "MY STRING!";
            var actual   = converter.Convert("My String!", typeof(string), null, CultureInfo.CurrentCulture);

            Assert.AreEqual(actual, expected);
        }
Example #2
0
        public void ConvertBackIsNotImplemented()
        {
            var converter = new StringToUppercaseConverter();

            Assert.ThrowsException <NotSupportedException>(() => converter.ConvertBack(null, typeof(string), null, CultureInfo.CurrentCulture));
        }