55 references to Fail
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (2)
AbstractCodeActionOrUserDiagnosticTest.cs (2)
488AssertEx.Fail(BuildFailureMessage(expectedSpans, WellKnownDiagnosticTags.Unnecessary, markupKey, initialMarkupWithoutSpans, diagnostics)); 686AssertEx.Fail($"Could not find document with name '{doc.Name}'");
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
LexicalAndXml\DocumentationCommentLexerTestBase.cs (2)
51AssertEx.Fail("Unmatched expected: " + expectedEnumerator.Current); 56AssertEx.Fail("Unmatched actual: " + expectedEnumerator.Current);
Syntax\SyntaxFactoryTests.cs (4)
113AssertEx.Fail("Should have thrown - can't create an IdentifierName token"); 139AssertEx.Fail("Should have thrown"); 150AssertEx.Fail("Should have thrown"); 161AssertEx.Fail("Should have thrown");
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (2)
CodeActions\AbstractCodeActionOrUserDiagnosticTest.cs (2)
488AssertEx.Fail(BuildFailureMessage(expectedSpans, WellKnownDiagnosticTags.Unnecessary, markupKey, initialMarkupWithoutSpans, diagnostics)); 686AssertEx.Fail($"Could not find document with name '{doc.Name}'");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
BracePairs\AbstractBracePairsTests.cs (1)
46AssertEx.Fail($"Unexpected brace pair: {bracePair}");
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
52AssertEx.Fail(errorMessage.ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
272AssertEx.Fail("Expected signature help items must be provided for EditorBrowsable tests. If there are no expected items, provide an empty IEnumerable rather than null.");
Workspaces\TestWorkspace_XmlConsumption.cs (1)
833AssertEx.Fail($"The document attributes on file {fileName} conflicted");
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (2)
Diagnostics\DiagnosticAnalyzerServiceTests.cs (2)
388AssertEx.Fail("shouldn't reach here"); 1213AssertEx.Fail("shouldn't reach here");
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (13)
Peek\PeekTests.vb (1)
269AssertEx.Fail("The test is missing a $$ in the workspace.")
Rename\RenameCommandHandlerTests.vb (8)
213Sub() AssertEx.Fail("Space should not have been passed to the editor."), 255Sub() AssertEx.Fail("Tab should not have been passed to the editor."), 336Sub() AssertEx.Fail("Command should not have been passed to the editor."), 349Sub() AssertEx.Fail("Command should not have been passed to the editor."), 392Sub() AssertEx.Fail("Home should not have been passed to the editor."), 409Sub() AssertEx.Fail("Shift+Home should not have been passed to the editor."), 425Sub() AssertEx.Fail("End should not have been passed to the editor."), 442Sub() AssertEx.Fail("Shift+End should not have been passed to the editor."),
Rename\RenameEngineResult.vb (4)
80AssertEx.Fail("The test must have a single $$ marking the symbol being renamed.") 90AssertEx.Fail("The symbol touching the $$ could not be found.") 211AssertEx.Fail(String.Format("The label '{0}' was not mentioned in the test.", label)) 264AssertEx.Fail(
Microsoft.CodeAnalysis.Test.Utilities (11)
Assert\AssertEx.cs (7)
144Fail("expected was null, but actual wasn't" + Environment.NewLine + message); 148Fail("actual was null, but expected wasn't" + Environment.NewLine + message); 167Fail(message + Environment.NewLine + expectedAndActual); 311Fail("expected and actual references are identical\r\n" + message); 320Fail("expected and actual sequences match\r\n" + message); 831Fail($"Expected 0 items but found {list.Count}: {message}\r\nItems:\r\n {string.Join("\r\n ", list)}"); 953Fail(stringBuilder.ToString());
Compilation\TestOperationVisitor.cs (1)
803AssertEx.Fail($"Unexpected parameter count for built in method: {method.ToDisplayString()}");
InstrumentationChecker.cs (2)
76AssertEx.Fail(output.ToStringAndFree()); 211AssertEx.Fail(output.ToStringAndFree());
Syntax\TokenUtilities.cs (1)
49AssertEx.Fail($"Unexpected token. Actual '{actualAll}' Expected '{expectedAll}'\r\nActual:\r\n{actual}");
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (4)
171analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 173analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 581analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 583analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message);
SourceFileResolverTest.cs (2)
37AssertEx.Fail("Didn't throw"); 60AssertEx.Fail("Didn't throw");
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\CompilationEmitTests.vb (2)
2598AssertEx.Fail("Unable to find type:" + typeName) 2614AssertEx.Fail("Unable to find method:" + methodName)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\AsyncLazyTests.cs (2)
191AssertEx.Fail(nameof(AsyncLazy<object>.GetValue) + " did not throw an exception."); 219AssertEx.Fail(nameof(AsyncLazy<object>.GetValueAsync) + " did not throw an exception.");
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
RQName\RQNameTests.vb (1)
255AssertEx.Fail("Could not find symbol")
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionAssetCacheTests.cs (2)
63AssertEx.Fail("asset not cleaned up"); 115AssertEx.Fail("asset not cleaned up");
VBCSCompiler.UnitTests (2)
CompilerServerTests.cs (2)
238AssertEx.Fail($"Deterministic compile failed \n stdout: {result.Output}"); 1509AssertEx.Fail($"Bytes were different at position {i} ({first[i]} vs {second[i]}). Flags used were (\"{finalFlags1}\" vs \"{finalFlags2}\")");