47 references to Equal
Microsoft.Build (41)
BackEnd\BuildManager\BuildManager.cs (1)
2390Assumed.Equal(_buildManagerState, requiredState, $"Expected state {requiredState}, actual state {_buildManagerState}");
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
138Assumed.Equal(_componentEntriesByType[componentType].Pattern, CreationPattern.Singleton, $"Previously existing factory for type {componentType} was not a singleton factory.");
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (3)
222Assumed.Equal(_status, BuildRequestEngineStatus.Uninitialized, $"Engine must be in the Uninitiailzed state, but is {_status}"); 668Assumed.Equal(_status, BuildRequestEngineStatus.Uninitialized, $"Cleanup wasn't called, status is {_status}"); 681Assumed.Equal(type, BuildComponentType.RequestEngine, $"Cannot create component of type {type}");
BackEnd\Components\BuildRequestEngine\BuildRequestEntry.cs (4)
226Assumed.Equal(State, BuildRequestEntryState.Active, $"Must be in Active state to wait for blocking request. Config: {RequestConfiguration.ConfigurationId} State: {State}"); 395Assumed.Equal(State, BuildRequestEntryState.Waiting, $"Entry must be in the waiting state to be unblocked. Config: {RequestConfiguration.ConfigurationId} State: {State} Request: {Request.GlobalRequestId}"); 415Assumed.Equal(State, BuildRequestEntryState.Ready, $"Entry must be in the Ready state. Config: {RequestConfiguration.ConfigurationId} State: {State}"); 492Assumed.Equal(State, BuildRequestEntryState.Active, $"Entry must be active before it can be Completed successfully. Config: {RequestConfiguration.ConfigurationId} State: {State}");
BackEnd\Components\Caching\ConfigCache.cs (1)
337Assumed.Equal(componentType, BuildComponentType.ConfigCache, $"Cannot create components of type {componentType}");
BackEnd\Components\Caching\RegisteredTaskObjectCache.cs (1)
59Assumed.Equal(type, BuildComponentType.RegisteredTaskObjectCache, $"Cannot create components of type {type}");
BackEnd\Components\Caching\ResultsCache.cs (1)
298Assumed.Equal(componentType, BuildComponentType.ResultsCache, $"Cannot create components of type {componentType}");
BackEnd\Components\Communications\NodeEndpointInProc.cs (2)
219Assumed.Equal(_status, LinkStatus.Active, $"Cannot send when link status is not active. Current status {_status}"); 311Assumed.Equal(_status, LinkStatus.Active, $"Endpoint is not connected. Current status {_status}");
BackEnd\Components\Communications\NodeManager.cs (1)
284Assumed.Equal(type, BuildComponentType.NodeManager, $"Cannot create component of type {type}");
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
337Assumed.Equal(type, BuildComponentType.InProcNodeProvider, $"Cannot create component of type {type}");
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
200Assumed.Equal(componentType, BuildComponentType.OutOfProcNodeProvider, $"Factory cannot create components of type {componentType}");
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
390Assumed.Equal(componentType, BuildComponentType.OutOfProcTaskHostNodeProvider, $"Factory cannot create components of type {componentType}");
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
178Assumed.Equal(type, BuildComponentType.TaskHostNodeManager, $"Cannot create component of type {type}");
BackEnd\Components\Logging\LoggingService.cs (1)
1006Assumed.Equal(packet.Type, NodePacketType.LogMessage, $"""Expected packet type "{nameof(NodePacketType.LogMessage)}" but instead got packet type "{packet.Type}".""");
BackEnd\Components\Logging\LoggingServiceFactory.cs (1)
48Assumed.Equal(type, BuildComponentType.LoggingService, $"Cannot create components of type {type}");
BackEnd\Components\RequestBuilder\IntrinsicTasks\MSBuild.cs (1)
382Assumed.Equal(skipNonExistProjects, SkipNonExistentProjectsBehavior.Error, $"skipNonexistentProjects has unexpected value {skipNonExistProjects}");
BackEnd\Components\RequestBuilder\RequestBuilder.cs (4)
634Assumed.Equal(type, BuildComponentType.RequestBuilder, $"Cannot create components of type {type}"); 750Assumed.Equal(_requestEntry.State, BuildRequestEntryState.Ready, $"Entry is not in the Ready state, it is in the {_requestEntry.State} state."); 758Assumed.Equal(_requestEntry.State, BuildRequestEntryState.Active, $"Entry is not in the Active state, it is in the {_requestEntry.State} state."); 1241Assumed.Equal(_requestEntry.RequestConfiguration.ResultsNodeId, _componentHost.BuildParameters.NodeId, $"Results for configuration {_requestEntry.RequestConfiguration.ConfigurationId} were not retrieved from node {_requestEntry.RequestConfiguration.ResultsNodeId}");
BackEnd\Components\RequestBuilder\TargetBuilder.cs (1)
397Assumed.Equal(type, BuildComponentType.TargetBuilder, $"Cannot create components of type {type}");
BackEnd\Components\RequestBuilder\TargetEntry.cs (4)
783Assumed.Equal(_state, TargetEntryState.Completed, $"State must be Completed. State is {_state}."); 784Assumed.Equal(_targetResult.ResultCode, TargetResultCode.Skipped, $"ResultCode must be Skipped. ResultCode is {_targetResult.ResultCode}."); 785Assumed.Equal(_targetResult.WorkUnitResult.ActionCode, WorkUnitActionCode.Continue, $"ActionCode must be Continue. ActionCode is {_targetResult.WorkUnitResult.ActionCode}."); 889Assumed.Equal(actual, expected, $"Expected state {expected}. Got {actual}");
BackEnd\Components\RequestBuilder\TaskBuilder.cs (1)
243Assumed.Equal(type, BuildComponentType.TaskBuilder, $"Cannot create components of type {type}");
BackEnd\Components\RequestBuilder\TaskHost.cs (3)
301Assumed.Equal(targetOutputsPerProject.Length, result.TargetOutputsPerProject.Count, $"{targetOutputsPerProject.Length} != {result.TargetOutputsPerProject.Count}"); 391Assumed.Equal(_yieldThreadId, Environment.CurrentManagedThreadId, $"Cannot call Reacquire() on thread {Environment.CurrentManagedThreadId} when Yield() was called on thread {_yieldThreadId}"); 1218Assumed.Equal(results.Length, projectFileNames.Length, $"{results.Length}!={projectFileNames.Length}.");
BackEnd\Components\Scheduler\SchedulableRequest.cs (1)
448Assumed.Equal(_state, requiredState, $"Request {_request.GlobalRequestId} expected to be in state {requiredState} but state is actually {_state}");
BackEnd\Components\Scheduler\Scheduler.cs (1)
710Assumed.Equal(componentType, BuildComponentType.Scheduler, $"Cannot create components of type {componentType}");
BackEnd\Shared\BuildResult.cs (1)
554Assumed.Equal(targetResult.ResultCode, TargetResultCode.Skipped, $"Items already exist for target {target}.");
BuildCheck\Infrastructure\BuildCheckManagerProvider.cs (1)
36Assumed.Equal(type, BuildComponentType.BuildCheckManagerProvider, $"Cannot create components of type {type}");
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
172Assumed.Equal(_status, LinkStatus.Inactive, $"Link not inactive. Status is {_status}");
TelemetryInfra\TelemetryCollectorProvider.cs (1)
30Assumed.Equal(type, BuildComponentType.TelemetryCollector, $"Cannot create components of type {type}");
Microsoft.Build.Framework (2)
Assumed.cs (1)
1011/// Conditional interpolated string handler for <see cref="Equal{T}(T, T, ref EqualInterpolatedStringHandler{T})"/>.
Utilities\FileMatcher.cs (1)
526Assumed.Equal(
Microsoft.Build.Tasks.Core (3)
GenerateResource.cs (2)
2718Assumed.Equal(_readers.Count, 1, $"We have no readers, or we have multiple readers & are ignoring subsequent ones. Num readers: {_readers.Count}"); 2726Assumed.Equal(_readers.Count, 1, $"We have no readers, or we have multiple readers & are ignoring subsequent ones. Num readers: {_readers.Count}");
MSBuild.cs (1)
339Assumed.Equal(skipNonExistProjects, SkipNonExistentProjectsBehavior.Error, $"skipNonexistentProjects has unexpected value {skipNonExistProjects}");
MSBuild (1)
src\msbuild\src\Shared\NodeEndpointOutOfProcBase.cs (1)
172Assumed.Equal(_status, LinkStatus.Inactive, $"Link not inactive. Status is {_status}");