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)
151TPDebug.Assert(!resultsDirectory.IsNullOrEmpty(), "'resultsDirectory' is null or empty"); 152TPDebug.Assert(resultsDirectory == resultsDirectory.Trim(), "'resultsDirectory' contains whitespace at the ends"); 159TPDebug.Assert(attachment is not null, "'attachment' is null");
ObjectModel\RunInfo.cs (1)
48TPDebug.Assert(computer != null, "computer is null");
ObjectModel\TestCategoryItems.cs (3)
68TPDebug.Assert(_category != null, "category is null"); 78TPDebug.Assert(_category != null, "category is null"); 88TPDebug.Assert(_category != null, "category is null");
ObjectModel\TestElement.cs (2)
40TPDebug.Assert(!name.IsNullOrEmpty(), "name is null"); 41TPDebug.Assert(!adapter.IsNullOrEmpty(), "adapter is null");
ObjectModel\TestEntry.cs (2)
75TPDebug.Assert(Equals(_testId, e._testId)); 76TPDebug.Assert(Equals(_categoryId, e._categoryId));
ObjectModel\TestId.cs (1)
66TPDebug.Assert(element != null, "element is null");
ObjectModel\TestListCategory.cs (1)
140TPDebug.Assert(Id != null, "id is null");
ObjectModel\TestMethod.cs (2)
18TPDebug.Assert(!name.IsNullOrEmpty(), "name is null"); 19TPDebug.Assert(!className.IsNullOrEmpty(), "className is null");
ObjectModel\TestResult.cs (13)
239TPDebug.Assert(computerName != null, "computername is null"); 240TPDebug.Assert(!Guid.Empty.Equals(executionId), "ExecutionId is empty"); 241TPDebug.Assert(!Guid.Empty.Equals(testId), "TestId is empty"); 417TPDebug.Assert(Id != null, "id is null"); 418TPDebug.Assert(trm.Id != null, "test result message id is null"); 424TPDebug.Assert(Id != null, "id is null"); 446TPDebug.Assert(testRun != null, "'testRun' is null"); 456TPDebug.Assert(resultFileList != null, "'resultFileList' is null"); 461TPDebug.Assert(!string.IsNullOrEmpty(resultFile), "'resultFile' is null or empty"); 462TPDebug.Assert(resultFile.Trim() == resultFile, "'resultFile' has whitespace at the ends"); 474TPDebug.Assert(collectorDataEntryList != null, "'collectorDataEntryList' is null"); 479TPDebug.Assert(collectorDataEntry != null, "'collectorDataEntry' is null"); 480TPDebug.Assert(!_collectorDataEntries.Contains(collectorDataEntry), "The collector data entry already exists in the collection");
ObjectModel\TestRunConfiguration.cs (4)
81TPDebug.Assert(_runDeploymentRoot != null, "runDeploymentRoot is null"); 100TPDebug.Assert(!string.IsNullOrEmpty(value), "RunDeploymentRootDirectory.value should not be null or empty."); 131TPDebug.Assert( 135TPDebug.Assert(
ObjectModel\UnitTestElement.cs (3)
26TPDebug.Assert(!string.IsNullOrEmpty(adapter), "adapter is null"); 27TPDebug.Assert(testMethod != null, "testMethod is null"); 28TPDebug.Assert(testMethod != null && testMethod.ClassName != null, "className is null");
ObjectModel\UriDataAttachment.cs (2)
95TPDebug.Assert(!baseDirectory.IsNullOrEmpty(), "'baseDirectory' is null or empty"); 96TPDebug.Assert(baseDirectory == baseDirectory.Trim(), "'baseDirectory' contains whitespace at the ends");
TrxLogger.cs (23)
165TPDebug.Assert(IsInitialized, "Logger is not initialized"); 171TPDebug.Assert(IsInitialized, "Logger is not initialized"); 193TPDebug.Assert(IsInitialized, "Logger is not initialized"); 202TPDebug.Assert(IsInitialized, "Logger is not initialized"); 211TPDebug.Assert(IsInitialized, "Logger is not initialized"); 235TPDebug.Assert(IsInitialized, "Logger is not initialized"); 335TPDebug.Assert(IsInitialized, "Logger is not initialized"); 443TPDebug.Assert(IsInitialized, "Logger is not initialized"); 450TPDebug.Assert(rsTestResult.Outcome == ObjectModel.TestOutcome.Skipped, "Test Result should be skipped but it is " + rsTestResult.Outcome); 493TPDebug.Assert(IsInitialized, "Logger is not initialized"); 536TPDebug.Assert(LoggerTestRun != null, "LoggerTestRun is null"); 537TPDebug.Assert(LoggerTestRun.RunConfiguration != null, "LoggerTestRun.RunConfiguration is null"); 538TPDebug.Assert(IsInitialized, "Logger is not initialized"); 588TPDebug.Assert(IsInitialized, "Logger is not initialized"); 609TPDebug.Assert(IsInitialized, "Logger is not initialized"); 625TPDebug.Assert(IsInitialized, "Logger is not initialized"); 684TPDebug.Assert(IsInitialized, "Logger is not initialized"); 687TPDebug.Assert(LoggerTestRun != null, "LoggerTestRun is null"); 701TPDebug.Assert(parentTestResult is TestResultAggregation, "parentTestResult is not of type TestResultAggregation"); 710TPDebug.Assert(parentTestResult is TestResultAggregation, "parentTestResult is not of type TestResultAggregation"); 731TPDebug.Assert(IsInitialized, "Logger is not initialized"); 758TPDebug.Assert(IsInitialized, "Logger is not initialized"); 774TPDebug.Assert(IsInitialized, "Logger is not initialized");
Utility\Collection.cs (1)
31TPDebug.Assert(e != null, "e is null");
Utility\Converter.cs (3)
463TPDebug.Assert(Path.IsPathRooted(sourceFile), "Source file is not rooted"); 476TPDebug.Assert(uriDataAttachment.Description is not null, "uriDataAttachment.Description is null"); 519TPDebug.Assert(Path.IsPathRooted(sourceFile), "Source file is not rooted");
Utility\EqtAssert.cs (4)
33TPDebug.Assert(expression, comment); 48TPDebug.Assert(parameter != null, $"'{nameof(parameterName)}' is null"); 63TPDebug.Assert(!parameter.IsNullOrEmpty(), $"'{nameof(parameterName)}' is null or empty"); 77TPDebug.Assert(!parameterName.IsNullOrEmpty(), "'parameterName' is null or empty");
Utility\TrxFileHelper.cs (8)
194TPDebug.Assert(pathTokens.Length > 0 && basePathTokens.Length > 0); 268TPDebug.Assert(!string.IsNullOrEmpty(fileName), "FileHelper.IsReservedFileName: the argument is null or empty string!"); 307TPDebug.Assert(!baseDirectoryName.IsNullOrEmpty(), "baseDirectoryname is null"); 308TPDebug.Assert(!originalName.IsNullOrEmpty(), "originalName is Null"); 309TPDebug.Assert(helper != null, "helper is null"); 345TPDebug.Assert(!string.IsNullOrEmpty(baseName), "basename is null"); 375TPDebug.Assert(!string.IsNullOrEmpty(baseName), "baseName is null"); 389TPDebug.Assert(!string.IsNullOrEmpty(path), "path is null");
XML\XmlPersistence.cs (9)
243TPDebug.Assert(xmlNode != null, "EnsureLocationExists should have returned a node"); 327TPDebug.Assert(saveTarget != null, "EnsureLocationExists should have returned a node"); 356TPDebug.Assert(dictionaryElement != null, "EnsureLocationExists should have returned a node"); 374TPDebug.Assert(dictionaryElement != null, "EnsureLocationExists should have returned a node"); 414TPDebug.Assert(listElement != null, "EnsureLocationExists should have returned a node"); 454TPDebug.Assert(listElement != null, "EnsureLocationExists should have returned a node"); 655TPDebug.Assert(valueToSave is not null, "valueToSave is null"); 756TPDebug.Assert(createData.ElementName is not null, "createData.ElementName is null"); 763TPDebug.Assert(persistee != null, "persistee is null");