public void DecWithCaryTest() { var four = Dense.Dec(Five); var three = Dense.Dec(four); Assert.AreEqual("11", DumpNat(three)); }
public void DecrementOneTest() { var zero = Dense.Dec(One); Assert.AreEqual("0", DumpNat(zero)); Assert.IsTrue(List <Dense.Digit> .IsEmpty(zero)); }
public void NegativeTest() { var exception = AssertThrows <ArgumentException>(() => Dense.Dec(Zero)); Assert.AreEqual("Can't go negative\r\nParameter name: ds", exception.Message); }
public void DecTest() { var four = Dense.Dec(Five); Assert.AreEqual("100", DumpNat(four)); }