19 references to InvalidArgument
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityDispatcher.cs (1)
875
catch (CapabilityException ex) when (ex.Error.Code is AtsErrorCodes.
InvalidArgument
or AtsErrorCodes.TypeMismatch)
Ats\CapabilityException.cs (1)
97
Code = AtsErrorCodes.
InvalidArgument
,
Aspire.Hosting.RemoteHost.Tests (17)
CapabilityDispatcherTests.cs (13)
222
[InlineData("""{"columns":0}""", AtsErrorCodes.
InvalidArgument
)]
223
[InlineData("""{"columns":-1}""", AtsErrorCodes.
InvalidArgument
)]
224
[InlineData("""{"rows":0}""", AtsErrorCodes.
InvalidArgument
)]
225
[InlineData("""{"rows":-1}""", AtsErrorCodes.
InvalidArgument
)]
226
[InlineData("""{"columns":0.0}""", AtsErrorCodes.
InvalidArgument
)]
227
[InlineData("""{"rows":-1.0}""", AtsErrorCodes.
InvalidArgument
)]
376
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
408
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
466
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
523
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
536
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
765
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
1171
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
KubernetesManifestTests.cs (3)
130
Assert.Equal(AtsErrorCodes.
InvalidArgument
, exception.Error.Code);
139
Assert.Equal(AtsErrorCodes.
InvalidArgument
, preservedValueException.Error.Code);
168
Assert.Equal(AtsErrorCodes.
InvalidArgument
, exception.Error.Code);
ReferenceExpressionRefTests.cs (1)
244
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);