示例#1
0
        public void Test_TriangleNumber()
        {
            string expected = "1\n"
                              + "12\n";

            Assert.Equal(expected, TriangleOfNumbers.Run(2));
        }
        public void Test_TriangleOfNumbers()
        {
            var expected = "1\n"
                           + "12\n"
                           + "123\n";

            Assert.Equal(expected, TriangleOfNumbers.Run(3));
        }
        public void Tri_Num_Test()
        {
            var expected = "1\n"
                           + "12\n"
                           + "123\n";



            Assert.Equal(expected, TriangleOfNumbers.Numbers(3));
        }
示例#4
0
        public void tes_triangle_of_numbers()
        {
            var expected = "1\n"
                           + "12\n"
                           + "123\n"
                           + "1234\n"
                           + "12345\n"
                           + "123456\n";

            Assert.Equal(expected, TriangleOfNumbers.Run(6));
        }
示例#5
0
 public void TriangleNumberTest()
 {
     Assert.Equal("1\n12\n123\n", TriangleOfNumbers.Run(3));
 }