2 writes to Failed
Microsoft.Extensions.Options (2)
ValidateOptionsResult.cs (2)
64
=> new ValidateOptionsResult {
Failed
= true, FailureMessage = failureMessage, Failures = new string[] { failureMessage } };
72
=> new ValidateOptionsResult {
Failed
= true, FailureMessage = string.Join("; ", failures), Failures = failures };
38 references to Failed
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
455
if (result.
Failed
)
Aspire.Hosting.Tests (10)
Dashboard\TransportOptionsValidatorTests.cs (10)
25
Assert.True(result.
Failed
);
98
Assert.True(result.
Failed
);
117
Assert.True(result.
Failed
);
137
Assert.True(result.
Failed
);
159
Assert.True(result.
Failed
);
181
Assert.True(result.
Failed
);
204
Assert.True(result.
Failed
);
229
Assert.True(result.
Failed
);
253
Assert.True(result.
Failed
);
275
Assert.True(result.
Failed
);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Latency\RequestLatencyTelemetryOptionsValidatorTests.cs (1)
17
Assert.True(validator.Validate(nameof(RequestLatencyTelemetryOptions), options).
Failed
);
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataValidatorTests.cs (2)
36
validator.Validate("model", applicationMetadata).
Failed
.Should().BeTrue();
45
validator.Validate("model", applicationMetadata).
Failed
.Should().BeTrue();
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactor.cs (1)
51
if (r.
Failed
)
Microsoft.Extensions.Compliance.Testing.Tests (2)
FakeRedactorOptionsValidatorTests.cs (2)
21
Assert.True(validationResult.
Failed
, "Validator passed when it should fail.");
42
Assert.True(validationResult.
Failed
, validationResult.FailureMessage);
Microsoft.Extensions.Diagnostics.Probes.Tests (4)
KubernetesProbesOptionsValidatorTests.cs (4)
47
Assert.True(result.
Failed
);
53
Assert.True(result.
Failed
);
59
Assert.True(result.
Failed
);
65
Assert.True(result.
Failed
);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
ResourceMonitoringOptionsCustomValidatorTests.cs (2)
27
Assert.True(result.
Failed
);
71
Assert.True(validationResult.
Failed
);
ResourceMonitoringOptionsValidatorTests.cs (4)
41
Assert.True(validator.Validate(nameof(options), options).
Failed
);
56
Assert.True(validator.Validate(nameof(options), options).
Failed
);
71
Assert.True(validator.Validate(nameof(options), options).
Failed
);
116
Assert.Equal(isError, validator.Validate(nameof(options), options).
Failed
);
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Logging\LoggingOptionsValidatorTest.cs (2)
36
validator.Validate("model", options).
Failed
.Should().BeTrue();
45
validator.Validate("model", options).
Failed
.Should().BeTrue();
Microsoft.Extensions.Http.Resilience.Tests (6)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (3)
24
Assert.True(validationResult.
Failed
);
74
Assert.False(validationResult.
Failed
);
103
Assert.True(validationResult.
Failed
);
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (3)
30
Assert.True(validationResult.
Failed
);
75
Assert.False(validationResult.
Failed
);
104
Assert.True(validationResult.
Failed
);
Microsoft.Extensions.Options (2)
OptionsFactory.cs (1)
80
if (result is not null && result.
Failed
)
ValidateOptionsResultBuilder.cs (1)
76
if (result.
Failed
)
Microsoft.Extensions.Options.Contextual (1)
Internal\ContextualOptionsFactory.cs (1)
138
if (result is not null && result.
Failed
)