public void CollatzConjecture_Hotpo_SampleTest(uint input, uint expectedOutput) { Assert.AreEqual(0u, CollantzConjecture.Hotpo(1u)); Assert.AreEqual(5u, CollantzConjecture.Hotpo(5u)); Assert.AreEqual(8u, CollantzConjecture.Hotpo(6u)); Assert.AreEqual(15u, CollantzConjecture.Hotpo(23u)); }
public void CollatzConjecture_Hotpo_RandomTests() { const int Tests = 1000; for (int i = 0; i < Tests; ++i) { uint n = (uint)rnd.Next(1, 10000000); uint expected = solution(n); uint actual = CollantzConjecture.Hotpo(n); } }