Example #1
0
        public void TestFirstCase()
        {
            var sol    = new PrintPaskalTriangle(0);
            var result = sol.GetPaskalTriangle();

            Assert.NotNull(result);
            Assert.AreEqual(0, result.Count);
        }
Example #2
0
        public void TestSecondTest()
        {
            var expected = new List <IList <int> >()
            {
                new List <int>()
                {
                    1
                }
            };

            var sol    = new PrintPaskalTriangle(1);
            var result = sol.GetPaskalTriangle();

            Assert.True(CheckLists(expected, result));
        }