public void Should_Encode_null() { var nm = new NM { Value = null }; Assert.AreEqual("", nm.Encode()); }
public void Should_Encode() { var nm = new NM { Value = 710m }; Assert.AreEqual("710", nm.Encode()); }
public void Should_Encode_Zero() { var nm = new NM { Value = decimal.Zero }; Assert.AreEqual("0", nm.Encode()); }
public void Should_Encode_decimals() { var nm = new NM { Value = 710.020m }; Assert.AreEqual("710.020", nm.Encode()); nm = new NM { Value = 0.020m }; Assert.AreEqual("0.020", nm.Encode()); nm = new NM { Value = -0.020m }; Assert.AreEqual("-0.020", nm.Encode()); nm = new NM { Value = .020m }; Assert.AreEqual("0.020", nm.Encode()); }
public void Should_Encode_decimals() { var nm = new NM { Value = 710.020m }; Assert.AreEqual("710.020", nm.Encode()); nm = new NM { Value = 0.020m }; Assert.AreEqual("0.020", nm.Encode()); nm = new NM { Value = -0.020m }; Assert.AreEqual("-0.020", nm.Encode()); nm = new NM { Value = .020m }; Assert.AreEqual("0.020", nm.Encode()); }
public void Should_Encode_Zero() { var nm = new NM { Value = decimal.Zero }; Assert.AreEqual("0", nm.Encode()); }
public void Should_Encode_null() { var nm = new NM { Value = null }; Assert.AreEqual("", nm.Encode()); }
public void Should_Encode() { var nm = new NM { Value = 710m }; Assert.AreEqual("710", nm.Encode()); }