public void LongTypeConverter_ConvertCoreWithNullString_Converts() { string source = null; var result = LongTypeConverter.Convert(source); Assert.IsTrue(result == 0); }
public void LongTypeConverter_ConvertCoreWithEmptyString_Converts() { string source = string.Empty; var result = LongTypeConverter.Convert(source); Assert.IsTrue(result == 0); }
public void LongTypeConverter_ConvertCoreWithValidString_Converts() { long number = 5; string source = number.ToString(); var result = LongTypeConverter.Convert(source); Assert.IsTrue(result == number); }