public void Test_TriangleStars()
        {
            var expected = "*\n"
                           + "**\n"
                           + "***\n";

            Assert.Equal(expected, TriangleStars.Run(3));
        }
示例#2
0
        public void tes_triagle_stars()
        {
            var expected = "*\n"
                           + "**\n"
                           + "***\n"
                           + "****\n"
                           + "*****\n"
                           + "******\n";

            Assert.Equal(expected, TriangleStars.Run(6));
        }
示例#3
0
 public void TriangleStarTest()
 {
     Assert.Equal("*\n**\n***\n", TriangleStars.Run(3));
 }