47 references to Assert
Microsoft.TestPlatform.CrossPlatEngine (47)
AttachmentsProcessing\DataCollectorAttachmentsProcessorsFactory.cs (2)
98
TPDebug.
Assert
(dataCollectorExtension.TestPluginInfo is not null, "dataCollectorExtension.TestPluginInfo is null");
113
TPDebug.
Assert
(attachmentQualifiedName is not null, "attachmentQualifiedName is null");
Client\Parallel\ParallelProxyDiscoveryManager.cs (1)
160
TPDebug.
Assert
(notDiscoveredCount + partiallyDiscoveredCount + fullyDiscoveredCount + skippedCount == expectedCount,
Client\Parallel\ParallelProxyExecutionManager.cs (3)
110
TPDebug.
Assert
(testRunCriteria.TestRunSettings is not null, "testRunCriteria.TestRunSettings is null");
308
TPDebug.
Assert
(testRunCriteria.Sources is not null, "testRunCriteria.Sources is null");
373
TPDebug.
Assert
(_currentRunDataAggregator is not null, "_currentRunDataAggregator is null");
Client\ProxyDiscoveryManager.cs (2)
136
TPDebug.
Assert
(_proxyOperationManagerCreator is not null, "_proxyOperationManagerCreator is null");
177
TPDebug.
Assert
(_proxyOperationManager is not null, "ProxyOperationManager is null.");
Client\ProxyExecutionManager.cs (5)
58
TPDebug.
Assert
(_proxyOperationManager is not null, "_proxyOperationManager is null");
63
TPDebug.
Assert
(_proxyOperationManager is not null, "_proxyOperationManager is null");
170
TPDebug.
Assert
(_proxyOperationManagerCreator is not null, "_proxyOperationManagerCreator is null");
171
TPDebug.
Assert
(sources is not null, "sources is null");
237
TPDebug.
Assert
(_proxyOperationManager is not null, "ProxyOperationManager is null.");
Client\TestRunCriteriaExtensions.cs (2)
19
TPDebug.
Assert
(testRunCriteria.AdapterSourceMap is not null, "testRunCriteria.AdapterSourceMap is null");
35
TPDebug.
Assert
(testRunCriteria.Tests is not null, "testRunCriteria.Tests is null");
DataCollection\DataCollectionLauncherFactory.cs (1)
41
TPDebug.
Assert
(currentProcessPath is not null, "currentProcessPath is null");
DataCollection\DefaultDataCollectionLauncher.cs (2)
56
TPDebug.
Assert
(dataCollectorDirectory is not null, "dataCollectorDirectory is not null");
59
TPDebug.
Assert
(currentProcessPath is not null, "currentProcessPath is not null");
DataCollection\DotnetDataCollectionLauncher.cs (2)
65
TPDebug.
Assert
(dataCollectorDirectory is not null, "dataCollectorDirectory is null");
100
TPDebug.
Assert
(currentProcessFileName is not null, "currentProcessFileName is null");
DataCollection\InProcDataCollector.cs (1)
82
TPDebug.
Assert
(Path.IsPathRooted(codeBase), "Absolute path expected");
DataCollection\ParallelDataCollectionEventsHandler.cs (1)
64
TPDebug.
Assert
(_attachmentsProcessingManager is not null, "_attachmentsProcessingManager is null");
DataCollection\ProxyDataCollectionManager.cs (1)
199
TPDebug.
Assert
(result is not null, "result is null");
Discovery\DiscovererEnumerator.cs (1)
293
TPDebug.
Assert
(discoverer.Metadata.DefaultExecutorUri is not null, "discoverer.Metadata.DefaultExecutorUri is null");
Discovery\DiscoveryResultCache.cs (4)
54
TPDebug.
Assert
(cacheSize > 0, "Buffer size cannot be less than zero");
55
TPDebug.
Assert
(onReportTestCases != null, "Callback which listens for cache size limit cannot be null.");
56
TPDebug.
Assert
(discoveredTestEventTimeout > TimeSpan.MinValue, "The cache timeout must be greater than min value.");
95
TPDebug.
Assert
(test != null, "DiscoveryResultCache.AddTest called with no new test.");
Execution\BaseRunTests.cs (2)
707
TPDebug.
Assert
(updatedTestResult is not null, "updatedTestResult is null");
726
TPDebug.
Assert
(updatedTestCase is not null, "updatedTestCase is null");
Execution\ExecutionManager.cs (2)
224
TPDebug.
Assert
(testEventsPublisher is not null, "testEventsPublisher is null");
231
TPDebug.
Assert
(testEventsPublisher is not null, "testEventsPublisher is null");
Execution\RunTestsWithTests.cs (1)
60
TPDebug.
Assert
(TestExecutionContext.TestCaseFilter == null, "TestCaseFilter should be null for specific tests.");
Execution\TestRunCache.cs (3)
83
TPDebug.
Assert
(cacheSize > 0, "Buffer size cannot be less than zero");
84
TPDebug.
Assert
(onCacheHit != null, "Callback which listens for cache size limit cannot be null.");
85
TPDebug.
Assert
(cacheTimeout > TimeSpan.MinValue, "The cache timeout must be greater than min value.");
PostProcessing\ArtifactProcessingManager.cs (4)
107
TPDebug.
Assert
(_testSessionProcessArtifactFolder is not null, "_testSessionProcessArtifactFolder is null");
108
TPDebug.
Assert
(_processArtifactFolder is not null, "_processArtifactFolder is null");
140
TPDebug.
Assert
(_processArtifactFolder is not null, "_processArtifactFolder is null");
232
TPDebug.
Assert
(_processArtifactFolder is not null, "_processArtifactFolder is null");
TestEngine.cs (6)
106
TPDebug.
Assert
(testHostManager is not null, "testHostManager is null");
128
TPDebug.
Assert
(hostManager is not null, "hostManager is null");
137
TPDebug.
Assert
(discoveryCriteria.TestSessionInfo is not null, "discoveryCriteria.TestSessionInfo is null");
195
TPDebug.
Assert
(testRunCriteria.TestRunSettings is not null, "testRunCriteria.TestRunSettings is null");
227
TPDebug.
Assert
(testHostManager is not null, "testHostManager is null");
622
TPDebug.
Assert
(currentProcessPath != null, "currentProcessPath is null");
TestSession\ProxyTestSessionManager.cs (1)
129
TPDebug.
Assert
(_testSessionCriteria.Sources is not null, "_testSessionCriteria.Sources is null");