示例#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);
        }
示例#2
0
        public void FormatterUnit()
        {
            FormatterUpperCase formatter = new FormatterUpperCase();

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

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

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