87 references to TPDebug
Microsoft.VisualStudio.TestPlatform.Extensions.Trx.TestLogger (87)
NullableHelpers.cs (2)
33
/// <inheritdoc cref="
TPDebug
.Assert(bool)"/>
38
/// <inheritdoc cref="
TPDebug
.Assert(bool, string)"/>
ObjectModel\CollectorDataEntry.cs (3)
151
TPDebug
.Assert(!resultsDirectory.IsNullOrEmpty(), "'resultsDirectory' is null or empty");
152
TPDebug
.Assert(resultsDirectory == resultsDirectory.Trim(), "'resultsDirectory' contains whitespace at the ends");
159
TPDebug
.Assert(attachment is not null, "'attachment' is null");
ObjectModel\RunInfo.cs (1)
48
TPDebug
.Assert(computer != null, "computer is null");
ObjectModel\TestCategoryItems.cs (3)
68
TPDebug
.Assert(_category != null, "category is null");
78
TPDebug
.Assert(_category != null, "category is null");
88
TPDebug
.Assert(_category != null, "category is null");
ObjectModel\TestElement.cs (2)
40
TPDebug
.Assert(!name.IsNullOrEmpty(), "name is null");
41
TPDebug
.Assert(!adapter.IsNullOrEmpty(), "adapter is null");
ObjectModel\TestEntry.cs (2)
75
TPDebug
.Assert(Equals(_testId, e._testId));
76
TPDebug
.Assert(Equals(_categoryId, e._categoryId));
ObjectModel\TestId.cs (1)
66
TPDebug
.Assert(element != null, "element is null");
ObjectModel\TestListCategory.cs (1)
140
TPDebug
.Assert(Id != null, "id is null");
ObjectModel\TestMethod.cs (2)
18
TPDebug
.Assert(!name.IsNullOrEmpty(), "name is null");
19
TPDebug
.Assert(!className.IsNullOrEmpty(), "className is null");
ObjectModel\TestResult.cs (13)
239
TPDebug
.Assert(computerName != null, "computername is null");
240
TPDebug
.Assert(!Guid.Empty.Equals(executionId), "ExecutionId is empty");
241
TPDebug
.Assert(!Guid.Empty.Equals(testId), "TestId is empty");
417
TPDebug
.Assert(Id != null, "id is null");
418
TPDebug
.Assert(trm.Id != null, "test result message id is null");
424
TPDebug
.Assert(Id != null, "id is null");
446
TPDebug
.Assert(testRun != null, "'testRun' is null");
456
TPDebug
.Assert(resultFileList != null, "'resultFileList' is null");
461
TPDebug
.Assert(!string.IsNullOrEmpty(resultFile), "'resultFile' is null or empty");
462
TPDebug
.Assert(resultFile.Trim() == resultFile, "'resultFile' has whitespace at the ends");
474
TPDebug
.Assert(collectorDataEntryList != null, "'collectorDataEntryList' is null");
479
TPDebug
.Assert(collectorDataEntry != null, "'collectorDataEntry' is null");
480
TPDebug
.Assert(!_collectorDataEntries.Contains(collectorDataEntry), "The collector data entry already exists in the collection");
ObjectModel\TestRunConfiguration.cs (4)
81
TPDebug
.Assert(_runDeploymentRoot != null, "runDeploymentRoot is null");
100
TPDebug
.Assert(!string.IsNullOrEmpty(value), "RunDeploymentRootDirectory.value should not be null or empty.");
131
TPDebug
.Assert(
135
TPDebug
.Assert(
ObjectModel\UnitTestElement.cs (3)
26
TPDebug
.Assert(!string.IsNullOrEmpty(adapter), "adapter is null");
27
TPDebug
.Assert(testMethod != null, "testMethod is null");
28
TPDebug
.Assert(testMethod != null && testMethod.ClassName != null, "className is null");
ObjectModel\UriDataAttachment.cs (2)
95
TPDebug
.Assert(!baseDirectory.IsNullOrEmpty(), "'baseDirectory' is null or empty");
96
TPDebug
.Assert(baseDirectory == baseDirectory.Trim(), "'baseDirectory' contains whitespace at the ends");
TrxLogger.cs (23)
190
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
196
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
218
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
227
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
236
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
260
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
383
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
491
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
498
TPDebug
.Assert(rsTestResult.Outcome == ObjectModel.TestOutcome.Skipped, "Test Result should be skipped but it is " + rsTestResult.Outcome);
541
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
586
TPDebug
.Assert(LoggerTestRun != null, "LoggerTestRun is null");
587
TPDebug
.Assert(LoggerTestRun.RunConfiguration != null, "LoggerTestRun.RunConfiguration is null");
588
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
638
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
659
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
675
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
736
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
740
TPDebug
.Assert(LoggerTestRun != null, "LoggerTestRun is null");
754
TPDebug
.Assert(parentTestResult is TestResultAggregation, "parentTestResult is not of type TestResultAggregation");
763
TPDebug
.Assert(parentTestResult is TestResultAggregation, "parentTestResult is not of type TestResultAggregation");
785
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
812
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
828
TPDebug
.Assert(IsInitialized, "Logger is not initialized");
Utility\Collection.cs (1)
31
TPDebug
.Assert(e != null, "e is null");
Utility\Converter.cs (3)
463
TPDebug
.Assert(Path.IsPathRooted(sourceFile), "Source file is not rooted");
476
TPDebug
.Assert(uriDataAttachment.Description is not null, "uriDataAttachment.Description is null");
519
TPDebug
.Assert(Path.IsPathRooted(sourceFile), "Source file is not rooted");
Utility\EqtAssert.cs (4)
33
TPDebug
.Assert(expression, comment);
48
TPDebug
.Assert(parameter != null, $"'{nameof(parameterName)}' is null");
63
TPDebug
.Assert(!parameter.IsNullOrEmpty(), $"'{nameof(parameterName)}' is null or empty");
77
TPDebug
.Assert(!parameterName.IsNullOrEmpty(), "'parameterName' is null or empty");
Utility\TrxFileHelper.cs (8)
194
TPDebug
.Assert(pathTokens.Length > 0 && basePathTokens.Length > 0);
268
TPDebug
.Assert(!string.IsNullOrEmpty(fileName), "FileHelper.IsReservedFileName: the argument is null or empty string!");
307
TPDebug
.Assert(!baseDirectoryName.IsNullOrEmpty(), "baseDirectoryname is null");
308
TPDebug
.Assert(!originalName.IsNullOrEmpty(), "originalName is Null");
309
TPDebug
.Assert(helper != null, "helper is null");
345
TPDebug
.Assert(!string.IsNullOrEmpty(baseName), "basename is null");
375
TPDebug
.Assert(!string.IsNullOrEmpty(baseName), "baseName is null");
389
TPDebug
.Assert(!string.IsNullOrEmpty(path), "path is null");
XML\XmlPersistence.cs (9)
243
TPDebug
.Assert(xmlNode != null, "EnsureLocationExists should have returned a node");
327
TPDebug
.Assert(saveTarget != null, "EnsureLocationExists should have returned a node");
356
TPDebug
.Assert(dictionaryElement != null, "EnsureLocationExists should have returned a node");
374
TPDebug
.Assert(dictionaryElement != null, "EnsureLocationExists should have returned a node");
414
TPDebug
.Assert(listElement != null, "EnsureLocationExists should have returned a node");
454
TPDebug
.Assert(listElement != null, "EnsureLocationExists should have returned a node");
655
TPDebug
.Assert(valueToSave is not null, "valueToSave is null");
756
TPDebug
.Assert(createData.ElementName is not null, "createData.ElementName is null");
763
TPDebug
.Assert(persistee != null, "persistee is null");