Exemplo n.º 1
0
        public void UnexpectedExceptionLogsMessage()
        {
            var engine = new MockEngine();
            var csc    = new Csc()
            {
                BuildEngine = engine,
            };

            csc.ExecuteTool(@"q:\path\csc.exe", "", "", new TestableCompilerServerLogger()
            {
                LogFunc = delegate { throw new Exception(""); }
            });
            Assert.False(string.IsNullOrEmpty(engine.Log));
        }