Пример #1
0
        public void TestDiamond1()
        {
            var expected = new StringBuilder();

            expected.Append("*\n");
            Assert.AreEqual(expected.ToString(), GiveMeDiamond.print(1));
        }
Пример #2
0
 public void TestNull()
 {
     Assert.IsNull(GiveMeDiamond.print(0));
     Assert.IsNull(GiveMeDiamond.print(-2));
     Assert.IsNull(GiveMeDiamond.print(2));
 }