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