public void Test_TryParseDecimal_InvalidFormat(string jsonData) { decimal value; bool res = CsvValueParser.TryParseDecimal(jsonData, out value); Assert.That(res, Is.False); }
public void Test_TryParseDecimal_Valid(string jsonData, double expectedData) { decimal expected = (decimal)expectedData; decimal value; bool res = CsvValueParser.TryParseDecimal(jsonData, out value); Assert.That(res, Is.True); Assert.That(value, Is.EqualTo(expected)); }