public void Int64StringConvertToStringTest() { var convert = new Int64StringConverter(); Int64 v = 1111111; Assert.AreEqual("1111111", convert.ConvertToString(v)); }
public void Int64StringConvertFromStringTest() { var convert = new Int64StringConverter(); Int64 v = 1111111; Assert.AreEqual(v, convert.ConvertFromString("1111111", typeof(Int64))); }
public void TestInt64StringConvertTo() { var converter = new Int64StringConverter(); Assert.AreEqual(long.MinValue.ToString(), converter.ConvertTo(long.MinValue, typeof(string))); Assert.AreEqual("19283718291", converter.ConvertTo(19283718291, typeof(string))); Assert.AreEqual(long.MaxValue.ToString(), converter.ConvertTo(long.MaxValue, typeof(string))); }