Пример #1
0
        public void UpsideDownTriangle_Print_TestMethod1()
        {
            var n        = 1;
            var expected = "*";
            var actual   = UpsideDownSymmetricalTriangle.Print(n);

            Assert.AreEqual(expected, actual);
        }
Пример #2
0
        public void UpsideDownTriangle_Print_TestMethod2()
        {
            var n        = 2;
            var expected = "* * *";

            expected += Environment.NewLine;
            expected += "  *";
            var actual = UpsideDownSymmetricalTriangle.Print(n);

            Assert.AreEqual(expected, actual);
        }