public void Test_total_grains() { System.Console.WriteLine(Grains.Square(1)); System.Console.WriteLine(Grains.Square(2)); System.Console.WriteLine(Grains.Square(3)); System.Console.WriteLine(Grains.Square(4)); System.Console.WriteLine(Grains.Square(5)); Assert.That(Grains.Total(), Is.EqualTo(18446744073709551615)); }
public void Test_square_16() { Assert.Equal(32768ul, Grains.Square(16)); }
public void Test_square_64() { Assert.That(Grains.Square(64), Is.EqualTo(9223372036854775808)); }
public void Test_square_16() { Assert.That(Grains.Square(16), Is.EqualTo(32768)); }
public void Test_square_3() { Assert.That(Grains.Square(3), Is.EqualTo(4)); }
public void Square_greater_than_64_raises_an_exception() { Assert.Throws <ArgumentOutOfRangeException>(() => Grains.Square(65)); }
public void Negative_square_raises_an_exception() { Assert.Throws <ArgumentOutOfRangeException>(() => Grains.Square(-1)); }
public void Grains_on_square_64() { Assert.Equal(9223372036854775808UL, Grains.Square(64)); }
public void Number_3() { Assert.Equal(4UL, Grains.Square(3)); }
public void Number_2() { Assert.Equal(2UL, Grains.Square(2)); }
public void Number_1() { Assert.Equal(1UL, Grains.Square(1)); }
public void Test_square_1() { Assert.Equal(1ul, Grains.Square(1)); }
public void Test_square_64() { Assert.Equal(9223372036854775808ul, Grains.Square(64)); }
public void Test_square_32() { Assert.Equal(2147483648ul, Grains.Square(32)); }
public void Grains_on_square_16() { Assert.Equal(32768UL, Grains.Square(16)); }
public void Number_4() { Assert.Equal(8UL, Grains.Square(4)); }
public void Grains_on_square_32() { Assert.Equal(2147483648UL, Grains.Square(32)); }
public void Number_16() { Assert.Equal(32768UL, Grains.Square(16)); }
public void Square_0_raises_an_exception() { Assert.Throws <ArgumentOutOfRangeException>(() => Grains.Square(0)); }
public void Number_32() { Assert.Equal(2147483648UL, Grains.Square(32)); }
public void Grains_on_square_1() { Assert.Equal(1UL, Grains.Square(1)); }
public void Number_64() { Assert.Equal(9223372036854775808UL, Grains.Square(64)); }
public void Test_square_2() { Assert.That(Grains.Square(2), Is.EqualTo(2)); }
public void Grains_on_square_2() { Assert.Equal(2UL, Grains.Square(2)); }
public void Test_square_4() { Assert.That(Grains.Square(4), Is.EqualTo(8)); }
public void Grains_on_square_3() { Assert.Equal(4UL, Grains.Square(3)); }
public void Test_square_32() { Assert.That(Grains.Square(32), Is.EqualTo(2147483648)); }
public void Grains_on_square_4() { Assert.Equal(8UL, Grains.Square(4)); }
public void Test_square_1() { Assert.That(Grains.Square(1), Is.EqualTo(1)); }
public void Test_square_4() { Assert.Equal(8ul, Grains.Square(4)); }