public void TestConvertFromStringNull() { FormatterPercent formatter = new FormatterPercent(); Assert.IsNull(formatter.ConvertFromString(null)); }
public void TestConvertToString2() { FormatterPercent formatter = new FormatterPercent(); Assert.AreEqual("50,01", formatter.ConvertToString(50.01m)); }
public void TestConstructeur() { FormatterPercent formatter = new FormatterPercent(); Assert.AreEqual("%", formatter.Unit); }
public void TestConvertFromStringBadFormat() { FormatterPercent formatter = new FormatterPercent(); formatter.ConvertFromString("azerty"); }
public void TestConvertFromStringPercentEmpty() { FormatterPercent formatter = new FormatterPercent(); Assert.IsNull(formatter.ConvertFromString("%")); }
public void TestConvertFromStringPercent() { FormatterPercent formatter = new FormatterPercent(); Assert.AreEqual(51.45m, formatter.ConvertFromString("51,45%")); }