コード例 #1
0
        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()
                );
        }
コード例 #2
0
 /// <summary>
 /// Measure peformance of Log (Reflect) with a Student
 /// </summary>
 public static void BenchLogReflectStudent()
 {
     printer.buffer.Clear();
     logReflect.Info(maria);
 }