5 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.Workspaces (3)
Workspace\Host\DocumentService\SpanMappingHelper.cs (2)
36Contract.ThrowIfFalse(textSpans.Length == result.Length, 48Contract.ThrowIfFalse(textSpans.Length == mappedSpanResult.Length,
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
385Contract.ThrowIfFalse(projectUpdateState.ProjectReferenceInfos.TryGetValue(projectId, out var referenceInfo), $"Expected ProjectReferenceInfos entry for project '{projectId}'");