34 references to Fail
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)
125AssertEx.Fail("Should have thrown - can't create an IdentifierName token"); 151AssertEx.Fail("Should have thrown"); 162AssertEx.Fail("Should have thrown"); 173AssertEx.Fail("Should have thrown");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (3)
BracePairs\AbstractBracePairsTests.cs (1)
45AssertEx.Fail($"Unexpected brace pair: {bracePair}");
LanguageServer\AbstractLspBuildOnlyDiagnosticsTests.cs (1)
49AssertEx.Fail(errorMessage.ToString());
SignatureHelp\AbstractSignatureHelpProviderTests.cs (1)
269AssertEx.Fail("Expected signature help items must be provided for EditorBrowsable tests. If there are no expected items, provide an empty IEnumerable rather than null.");
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Configuration\DidChangeConfigurationNotificationHandlerTest.cs (1)
195AssertEx.Fail($"{Methods.WorkspaceDidChangeConfigurationName} is registered twice.");
Microsoft.CodeAnalysis.Test.Utilities (10)
Assert\AssertEx.cs (8)
137Fail("expected was null, but actual wasn't" + Environment.NewLine + message); 141Fail("actual was null, but expected wasn't" + Environment.NewLine + message); 160Fail(message + Environment.NewLine + expectedAndActual); 316Fail("expected and actual references are identical\r\n" + message); 325Fail("expected and actual sequences match\r\n" + message); 876Fail($"Expected 0 items but found {list.Count}: {message}\r\nItems:\r\n {string.Join("\r\n ", list)}"); 1006Fail(stringBuilder.ToString()); 1026Fail("Filter does not match any item in the collection: " + Environment.NewLine +
Compilation\TestOperationVisitor.cs (1)
821AssertEx.Fail($"Unexpected parameter count for built in method: {method.ToDisplayString()}");
Syntax\TokenUtilities.cs (1)
49AssertEx.Fail($"Unexpected token. Actual '{actualAll}' Expected '{expectedAll}'\r\nActual:\r\n{actual}");
Microsoft.CodeAnalysis.UnitTests (6)
AnalyzerAssemblyLoaderTests.cs (4)
247analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 249analyzerDependencyReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 764analyzerMainReference.AnalyzerLoadFailed += (_, e) => AssertEx.Fail(e.Exception!.Message); 766analyzerDependencyReference.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)
2599AssertEx.Fail("Unable to find type:" + typeName) 2615AssertEx.Fail("Unable to find method:" + methodName)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Workspaces\TestWorkspace_XmlConsumption.cs (1)
669AssertEx.Fail($"The document attributes on file {fileName} conflicted");
Microsoft.VisualStudio.LanguageServices.UnitTests (1)
RQName\RQNameTests.vb (1)
255AssertEx.Fail("Could not find symbol")
Roslyn.VisualStudio.Next.UnitTests (2)
Services\SolutionAssetCacheTests.cs (2)
67AssertEx.Fail("asset not cleaned up"); 122AssertEx.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}\")");