public void TestLogInfo() { // Arrange BufferedPrinter printer = new BufferedPrinter(); AbstractLog log = CreateLog(printer); Point p = new Point(7, 9); // Act log.Info(p); // Assert Assert.AreEqual( "GetModule: 11.4017542509914, x: 7", printer.buffer.ToString() ); }
/// <summary> /// Measure peformance of Log (Reflect) with a Student /// </summary> public static void BenchLogReflectStudent() { printer.buffer.Clear(); logReflect.Info(maria); }