58 references to Equal
Microsoft.Build (48)
BackEnd\BuildManager\CacheAggregator.cs (1)
60Assumed.Equal(configs.Length, results.Length, "Assuming 1-to-1 mapping between configs and results. Otherwise it means the caches are either not minimal or incomplete");
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
241Assumed.Equal(Pattern, CreationPattern.Singleton, "Cannot shutdown non-singleton.");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (1)
129Assumed.Equal(requestConfiguration.ConfigurationId, request.ConfigurationId, "Configuration id mismatch");
BackEnd\Components\Caching\ResultsCacheWithOverride.cs (1)
87Assumed.Equal(CurrentCache.SatisfyRequest(
BackEnd\Components\Communications\NodeEndpointInProc.cs (1)
342Assumed.Equal(_mode, EndpointMode.Asynchronous, "EndPoint mode is synchronous, should be asynchronous");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
343Assumed.Equal(projectFiles.Length, properties.Length, "Properties and project counts not the same"); 344Assumed.Equal(projectFiles.Length, toolsVersions.Length, "Tools versions and project counts not the same"); 388Assumed.Equal(requests.Length, results.Length, "# results != # requests"); 1004Assumed.Equal(requests.Length, results.Length, "# results != # requests");
BackEnd\Components\RequestBuilder\TargetUpToDateChecker.cs (2)
610Assumed.Equal(inputItemVectors.Count, 1, "There should only be one item vector of a particular type in the target inputs that can be filtered."); 718Assumed.Equal(result, DependencyAnalysisResult.IncrementalBuild, "If inputs have changed, this must be an incremental build.");
BackEnd\Components\RequestBuilder\TaskBuilder.cs (2)
527Assumed.Equal(howToExecuteTask, TaskExecutionMode.InferOutputsOnly, "should be inferring"); 1187Assumed.Equal(howToExecuteTask, TaskExecutionMode.InferOutputsOnly, "should be inferring");
BackEnd\Components\RequestBuilder\TaskHost.cs (1)
361Assumed.Equal(_yieldThreadId, -1, "Cannot call Yield() while yielding.");
BackEnd\Components\Scheduler\SchedulableRequest.cs (3)
255Assumed.Equal(_creationTime, DateTime.MinValue, "Cannot set CreationTime twice."); 272Assumed.Equal(_startTime, DateTime.MinValue, "Cannot set StartTime twice."); 289Assumed.Equal(_endTime, DateTime.MinValue, "Cannot set EndTime twice.");
BackEnd\Components\Scheduler\Scheduler.cs (3)
446Assumed.Equal(result.ParentGlobalRequestId, request.Parent.BuildRequest.GlobalRequestId, "Result's parent doesn't match request's parent."); 1630Assumed.Equal(inProcNodesToCreate, 1, "We should not be trying to create more than one inproc node"); 2197Assumed.Equal(result.ParentGlobalRequestId, requestWhichGeneratedResult.ParentGlobalRequestId, "Result's parent doesn't match request's parent.");
BackEnd\Components\Scheduler\ScheduleTimeRecord.cs (1)
57Assumed.Equal(_startTimeForCurrentState, DateTime.MinValue, "Cannot start the counter when it is already running.");
BackEnd\Shared\BuildRequest.cs (2)
267Assumed.Equal(_globalRequestId, InvalidGlobalRequestId, "Global Request ID cannot be set twice."); 350Assumed.Equal(_buildEventContext, BuildEventContext.Invalid, "The build event context is already set.");
BackEnd\Shared\BuildRequestConfiguration.cs (1)
794Assumed.Equal(request.ConfigurationId, ConfigurationId, "Request does not match configuration.");
BackEnd\Shared\BuildResult.cs (1)
584Assumed.Equal(results.ConfigurationId, ConfigurationId, "Result configurations don't match");
Collections\CopyOnWritePropertyDictionary.cs (2)
257Assumed.Equal(key, value.Key, "Key must match value's key"); 307Assumed.Equal(item.Key, item.Value.Key, "Key must match value's key");
Collections\PropertyDictionary.cs (2)
363Assumed.Equal(key, value.Key, "Key must match value's key"); 445Assumed.Equal(item.Key, item.Value.Key, "Key must match value's key");
Construction\ProjectElementContainer.cs (3)
176Assumed.Equal(child.NextSibling.PreviousSibling, reference, "Invalid structure"); 232Assumed.Equal(child.PreviousSibling.NextSibling, reference, "Invalid structure"); 389Assumed.Equal(child.Parent, this, "Expected parent already set");
Definition\Project.cs (1)
3813Assumed.Equal(LastEvaluationId, BuildEventContext.InvalidEvaluationId, "This is the first evaluation therefore the last evaluation id is invalid");
Definition\ToolsetReader.cs (1)
302Assumed.Equal(Constants.defaultToolsVersion, "2.0", "Getting 2.0 FX path so default should be 2.0");
ElementLocation\ElementLocation.cs (1)
143Assumed.Equal(translator.Mode, TranslationDirection.WriteToStream, "write only");
Evaluation\Evaluator.cs (1)
632Assumed.Equal(_data.EvaluationId, BuildEventContext.InvalidEvaluationId, "There is no prior evaluation ID. The evaluator data needs to be reset at this point");
Evaluation\LazyItemEvaluator.LazyItemOperation.cs (1)
126Assumed.Equal(capturedItems.Comparer, StringComparer.OrdinalIgnoreCase, "MSBuild assumes case insensitive item name comparison");
Evaluation\ProjectRootElementCache.cs (2)
106Assumed.Equal(s_getEntriesNumber, 1, "Reentrance to the ProjectRootElementCache.Get function detected."); 534Assumed.Equal(_weakCache[oldFullPathIfAny], projectRootElement, "Should already be present");
Graph\GraphBuilder.cs (1)
463Assumed.Equal(state, NodeVisitationState.Processed, "entrypoints should get processed after a call to detect cycles");
Graph\GraphBuildSubmission.cs (1)
63Assumed.Equal(result.SubmissionId, SubmissionId, "GraphBuildResult's submission id doesn't match GraphBuildSubmission's");
Graph\ProjectGraph.cs (1)
587Assumed.Equal(toposort.Count, graphNodes.Count, "sorted node count must be equal to total node count");
Instance\ProjectInstance.cs (1)
3272Assumed.Equal(EvaluationId, BuildEventContext.InvalidEvaluationId, "Evaluation ID is invalid prior to evaluation");
Instance\ProjectMetadataInstance.cs (1)
179Assumed.Equal(translator.Mode, TranslationDirection.WriteToStream, "write only");
Instance\ProjectPropertyInstance.cs (2)
174Assumed.Equal(translator.Mode, TranslationDirection.WriteToStream, "write only"); 273Assumed.Equal(translator.Mode, TranslationDirection.ReadFromStream, "read only");
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
161Assumed.Equal(staticWriter, _writerSetByThisInstance, $"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
Utilities\ProjectWriter.cs (1)
142Assumed.Equal(itemVectorTransforms.Count, (surroundingTextPieces.Length - 1), "We must have two pieces of surrounding text for every item vector transform found.");
Microsoft.Build.Framework (5)
BackEnd\CommunicationsUtilities.cs (1)
360Assumed.Equal(bytes.Length, 4, "Int should be 4 bytes");
Utilities\AssemblyLoadInfo.cs (1)
112Assumed.Equal(translator.Mode, TranslationDirection.WriteToStream, "write only");
Utilities\AssemblyNameExtension.cs (1)
515Assumed.Equal(result, baselineResult, "Optimized version of CompareBaseNameTo didn't return the same result as the baseline.");
Utilities\FileMatcher.cs (1)
1201Assumed.Equal(
Utilities\QuotingUtilities.cs (1)
73Assumed.Equal(separators.IndexOf('"'), -1, "The double-quote character is not supported as a separator.");
Microsoft.Build.Tasks.Core (1)
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
161Assumed.Equal(staticWriter, _writerSetByThisInstance, $"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
Microsoft.Build.Utilities.Core (2)
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
161Assumed.Equal(staticWriter, _writerSetByThisInstance, $"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");
ToolTask.cs (1)
1683Assumed.Equal(nextAction, HostObjectInitializationStatus.UseAlternateToolToExecute, "Invalid return status");
MSBuild (2)
CommandLine\CommandLineParser.cs (1)
600Assumed.Equal(switchName, unquotedSwitchIndicatorAndName.Substring(switchIndicatorsLength), "The switch name extracted from either the partially or completely unquoted arg should be the same.");
src\msbuild\src\Shared\Debugging\PrintLineDebugger.cs (1)
161Assumed.Equal(staticWriter, _writerSetByThisInstance, $"The writer from this {nameof(PrintLineDebugger)} instance differs from the static writer.");