public void CompilationResult_TestFromErrorMessage() { var result = CompilationResult.FromErrorMessages(new List <string>() { "error1", "error2", "error3" }); Assert.False(result.Success); Assert.True(result.ErrorMessages.Contains("error1")); Assert.Equal(3, result.ErrorMessages.Count()); Assert.Null(result.Assembly); }