public void TestMethod100base3ToBase10() { InfiniteNumber n1 = new InfiniteNumber("10".Select(c => c.ToString()).ToArray(), 3); var n3 = n1.ToBase10(); Assert.AreEqual(n3.ToString(), "3"); }
public void TestMethodManybasesToBase10() { for (int baseN = 2; baseN < 27; baseN++) { InfiniteNumber n1 = new InfiniteNumber("10".Select(c => c.ToString()).ToArray(), baseN); var n3 = n1.ToBase10(); Assert.AreEqual(n3.ToString(), baseN.ToString()); } }