public void TestBinaryLoggerRoundtrip() { var binaryLogger = new BinaryLogger(); binaryLogger.Parameters = _logFile; var mockLogFromBuild = new MockLogger(); // build and log into binary logger and mockLogger1 ObjectModelHelpers.BuildProjectExpectSuccess(s_testProject, binaryLogger, mockLogFromBuild); var mockLogFromPlayback = new MockLogger(); var binaryLogReader = new BinaryLogReplayEventSource(); mockLogFromPlayback.Initialize(binaryLogReader); // read the binary log and replay into mockLogger2testassembly binaryLogReader.Replay(_logFile); // the binlog will have more information than recorded by the text log Assert.Contains(mockLogFromBuild.FullLog, mockLogFromPlayback.FullLog); }