Exemplo n.º 1
0
        public void TestSanduhrException()
        {
            //Arrange
            Sanduhr sanduhr = new Sanduhr();

            //Act (throws Exception)
            var print = sanduhr.Print(1);
        }
Exemplo n.º 2
0
        public void TestSanduhrWidth5()
        {
            //Arrange
            Sanduhr sanduhr = new Sanduhr();

            //Act
            var print = sanduhr.Print(5);

            Console.Write(print);

            //Assert
            Assert.AreEqual("*****" + Environment.NewLine + " ***" + Environment.NewLine + "  *" + Environment.NewLine + " ***" + Environment.NewLine + "*****", print);
        }