public void TestLogInfo() { // Arrange Point p = new Point(7, 9); BufferPrinter printer = new BufferPrinter(); Log log = new Log(printer); // Act log.Info(p); // Assert Assert.Equal( "GetModule: 11,40175425099138, x: 7,", printer.buffer.ToString() ); }
public void TestLogDynamic() { // Arrange Point p = new Point(7, 9); BufferPrinter printer = new BufferPrinter(); LogDynamic log = new LogDynamic(printer); // Act log.Info(p); // Assert Assert.Equal( "x: 7, y: 9", printer.buffer.ToString() ); }