public void DecimalFromStringTest(string input, string format, char?decimalPoint, decimal output) { Assert.Equal(new decimal?(output), EdiExtensions.Parse(input, (Picture)format, decimalPoint)); }
public void IntegerToStringTest() { Assert.Equal(new decimal?(290.12M), EdiExtensions.Parse("29012", (Picture)"9(13)V9(2)", null)); Assert.Equal(new decimal?(290.12M), EdiExtensions.Parse("290.12", (Picture)"9(13)V9(2)", '.')); Assert.Equal(new decimal?(290.12M), EdiExtensions.Parse("290.12", (Picture)"X(13)", '.')); }