10 references to ThrowIfFalse
Microsoft.CodeAnalysis.Features (2)
EmbeddedLanguages\ExportEmbeddedLanguageFeatureServiceAttribute.cs (1)
55Contract.ThrowIfFalse(contractType.IsInterface && typeof(IEmbeddedLanguageFeatureService).IsAssignableFrom(contractType),
ExternalAccess\UnitTesting\Notification\AbstractGlobalOperationNotificationService.cs (1)
44Contract.ThrowIfFalse(_operations.Count == 0, $"Non-disposed operations: {string.Join(", ", _operations)}");
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\SourceMarkers.cs (1)
84Contract.ThrowIfFalse(end >= 0, $"Missing ending tag for {id}");
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Handler\RequestContext.cs (1)
314Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(documentUri), $"Attempted to get text for {documentUri} which is not open.");
LspServices\AbstractExportLspServiceAttribute.cs (1)
60Contract.ThrowIfFalse(serviceType.GetInterfaces().Contains(typeof(ILspService)), $"{serviceType.Name} does not inherit from {nameof(ILspService)}");
Workspaces\LspWorkspaceManager.cs (2)
149Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(uri), $"didClose received for {uri} which is not open."); 203Contract.ThrowIfFalse(_trackedDocuments.ContainsKey(uri), $"didChange received for {uri} which is not open.");
Microsoft.CodeAnalysis.Workspaces (2)
Workspace\Host\DocumentService\SpanMappingHelper.cs (2)
36Contract.ThrowIfFalse(textSpans.Length == result.Length, 48Contract.ThrowIfFalse(textSpans.Length == mappedSpanResult.Length,
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
MEF\TestComposition.cs (1)
195Contract.ThrowIfFalse(testAssembly == null, $"Test assemblies are not allowed in test composition: {testAssembly}. Specify explicit test parts instead.");