public void RemoveLeadingZeros_When0000_Then0() { VeryLong number = new VeryLong("0000"); number.RemoveLeadingZeros(); Assert.AreEqual("0", number.ToString()); }
public void RemoveLeadingZeros_When23_Then23() { VeryLong number = new VeryLong("23"); number.RemoveLeadingZeros(); Assert.AreEqual("23", number.ToString()); }
public void RemoveLeadingZerosTestMethod() { Assert.AreEqual("0", VeryLong.RemoveLeadingZeros("0000")); Assert.AreEqual("123", VeryLong.RemoveLeadingZeros("0000123")); Assert.AreEqual("0.000", VeryLong.RemoveLeadingZeros("0000.000")); Assert.AreEqual("1.0", VeryLong.RemoveLeadingZeros("0001.0")); }