public void Zero() { string size = "0"; NumberSpiral spiral = NumberSpiral.CreateNumberSpiral(size); Assert.AreEqual("0", spiral.ToString()); }
public void One() { string size = "1"; NumberSpiral spiral = NumberSpiral.CreateNumberSpiral(size); Assert.AreEqual(@"0 1", spiral.ToString()); }
public void TwentyFour() { string size = "24"; NumberSpiral spiral = NumberSpiral.CreateNumberSpiral(size); Assert.AreEqual( @"20 21 22 23 24 19 6 7 8 9 18 5 0 1 10 17 4 3 2 11 16 15 14 13 12", spiral.ToString()); }
public void ThirtyThree() { string size = "33"; NumberSpiral spiral = NumberSpiral.CreateNumberSpiral(size); Assert.AreEqual( @"20 21 22 23 24 25 19 6 7 8 9 26 18 5 0 1 10 27 17 4 3 2 11 28 16 15 14 13 12 29 33 32 31 30", spiral.ToString()); }