Example #1
0
        public void CheckConvertFromStringTest()
        {
            FormatterUpperCase formatter = new FormatterUpperCase();
            string             expected  = @"AB-CD@ÉF.G";
            string             source    = @"ab-cd@éf.g";
            string             actual    = ((IFormatter <string>)formatter).ConvertFromString(source);

            Assert.AreEqual(expected, actual);
        }
Example #2
0
        public void FormatterUnit()
        {
            FormatterUpperCase formatter = new FormatterUpperCase();

            Assert.IsNull(formatter.Unit);
        }
Example #3
0
        public void CheckConvertFromStringEmptyTest()
        {
            FormatterUpperCase formatter = new FormatterUpperCase();

            Assert.IsNull(formatter.ConvertFromString(String.Empty));
        }
Example #4
0
        public void CheckConvertFromStringNullTest()
        {
            FormatterUpperCase formatter = new FormatterUpperCase();

            Assert.IsNull(formatter.ConvertFromString(null));
        }