Beispiel #1
0
        public void Exercise1Test2()
        {
            CellPrinter cp     = new CellPrinter();
            string      result = "Cell is on Position X:6 Y:7";

            Assert.AreEqual(result, cp.PrintPostion(6, 7));
        }
        public void Exercise1_Method2()
        {
            int         x           = 6;
            int         y           = 7;
            string      check       = $"Cell is on Position X:{x} Y:{y}";
            CellPrinter cellPrinter = new CellPrinter();

            Assert.Equal(check, cellPrinter.PrintPostion(x, y));
        }