5 references to ThrowIfFalse
Microsoft.CodeAnalysis.Features (2)
EmbeddedLanguages\ExportEmbeddedLanguageFeatureServiceAttribute.cs (1)
55
Contract.
ThrowIfFalse
(contractType.IsInterface && typeof(IEmbeddedLanguageFeatureService).IsAssignableFrom(contractType),
ExternalAccess\UnitTesting\Notification\AbstractGlobalOperationNotificationService.cs (1)
44
Contract.
ThrowIfFalse
(_operations.Count == 0, $"Non-disposed operations: {string.Join(", ", _operations)}");
Microsoft.CodeAnalysis.Workspaces (3)
Workspace\Host\DocumentService\SpanMappingHelper.cs (2)
36
Contract.
ThrowIfFalse
(textSpans.Length == result.Length,
48
Contract.
ThrowIfFalse
(textSpans.Length == mappedSpanResult.Length,
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
385
Contract.
ThrowIfFalse
(projectUpdateState.ProjectReferenceInfos.TryGetValue(projectId, out var referenceInfo), $"Expected ProjectReferenceInfos entry for project '{projectId}'");