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))); }
public void BoolStringConvertFromStringTest() { var coverter = new ByteStringConverter(); Assert.AreEqual(byte.Parse("132"), coverter.ConvertFromString("132", typeof(byte))); }
public void BoolStringConvertToStringTest() { var coverter = new ByteStringConverter(); Assert.AreEqual("132", coverter.ConvertToString(132)); }