public void UnexpectedExceptionLogsMessage() { var engine = new MockEngine(); var vbc = new Vbc() { BuildEngine = engine, }; vbc.ExecuteTool(@"q:\path\vbc.exe", "", "", new TestableCompilerServerLogger() { LogFunc = delegate { throw new Exception(""); } }); Assert.False(string.IsNullOrEmpty(engine.Log)); }