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 Exercise1Test1() { CellPrinter cp = new CellPrinter(); string result = "Cell rot born on 12.12.2019 is alive"; Assert.AreEqual(result, cp.PrintState(true, DateTime.Today, "rot")); }
public void Exercise1_Method1() { DateTime dt = new DateTime(2019, 12, 14); string check = $"Cell rot born on {dt.Day}.{dt.Month}.{dt.Year} is alive"; CellPrinter cellPrinter = new CellPrinter(); Assert.Equal(check, cellPrinter.PrintState(true, dt, "rot")); }
public object Method1() { CellPrinter cp = new CellPrinter(); return(cp); throw new NotImplementedException(); }
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)); }
public object Method1() { CellPrinter cellPrinter = new CellPrinter(); return(cellPrinter); }
public object Method1() { ICellPrinter x = new CellPrinter(); return(x); }