Esempio n. 1
0
        public static string AppendErrors(string s, VisualStudioHost visualStudio)
        {
            var errors = visualStudio.GetErrorsInOutputWindows();

            if (errors.Any())
            {
                s += Environment.NewLine + string.Join("\n\t error: ", errors);
            }

            return(s);
        }
Esempio n. 2
0
 public static bool HasNoErrorsInOutputWindows(this VisualStudioHost host)
 {
     return(host.GetErrorsInOutputWindows().Count == 0);
 }
Esempio n. 3
0
 /// <summary>
 /// Assert no errors in nuget output window
 /// </summary>
 internal static void AssertNuGetOutputDoesNotHaveErrors(this VisualStudioHost host)
 {
     host.GetErrorsInOutputWindows().Should().BeEmpty();
 }