public void StringToLongTypeConverter_WithString_Convert_ReturnsLong(string source) { var converter = new StringToLongTypeConverter(); var target = converter.Convert(source); target.ShouldBe(long.Parse(source)); }
public void StringToLongTypeConverter_WithInvalidString_Convert_ReturnsZero(string source) { var converter = new StringToLongTypeConverter(); var target = converter.Convert(source); target.ShouldBe(0); }