public void TestByteStringConvertTo()
        {
            var converter = new ByteStringConverter();

            Assert.AreEqual(byte.MinValue.ToString(), converter.ConvertTo(byte.MinValue, typeof(string)));
            Assert.AreEqual("132", converter.ConvertTo((byte)132, typeof(string)));
            Assert.AreEqual(byte.MaxValue.ToString(), converter.ConvertTo(byte.MaxValue, typeof(string)));
        }
Ejemplo n.º 2
0
        public void BoolStringConvertFromStringTest()
        {
            var coverter = new ByteStringConverter();

            Assert.AreEqual(byte.Parse("132"), coverter.ConvertFromString("132", typeof(byte)));
        }
Ejemplo n.º 3
0
        public void BoolStringConvertToStringTest()
        {
            var coverter = new ByteStringConverter();

            Assert.AreEqual("132", coverter.ConvertToString(132));
        }