public void TryParseLong() { TableExtensions.TryParseFloat("700", out var expected); long.TryParse("700", NumberStyles.Number, CultureInfo.NumberFormat, out var wrong); Assert.AreEqual(700, wrong); Assert.AreEqual(700, expected); }
public void TryParseFloat() { TableExtensions.TryParseFloat(Value, out var expected); float.TryParse(Value, NumberStyles.Number, CultureInfo.NumberFormat, out var wrong); Assert.AreEqual(56f, wrong); Assert.AreEqual(5.6f, expected); }