public void HugeNumber_ToStringTest() { int iValue = 1000; string striValueString = "1A"; HugeNumber sHugeNumber = new HugeNumber(iValue); Assert.IsTrue(sHugeNumber.ToString() == striValueString); }
public void TestToString() { HugeNumber result = new HugeNumber() { true, true, false, false, true }; string expected = "11001"; Assert.AreEqual(expected, result.ToString(), "ToString failed for 15."); result = new HugeNumber() { true, false, true, false, true, true }; expected = "101011"; Assert.AreEqual(expected, result.ToString(), "ToString failed for -11."); }