19 references to InvalidArgument
Aspire.Hosting.RemoteHost (2)
Ats\CapabilityDispatcher.cs (1)
877
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)
281
[InlineData("""{"columns":0}""", AtsErrorCodes.
InvalidArgument
)]
282
[InlineData("""{"columns":-1}""", AtsErrorCodes.
InvalidArgument
)]
283
[InlineData("""{"rows":0}""", AtsErrorCodes.
InvalidArgument
)]
284
[InlineData("""{"rows":-1}""", AtsErrorCodes.
InvalidArgument
)]
285
[InlineData("""{"columns":0.0}""", AtsErrorCodes.
InvalidArgument
)]
286
[InlineData("""{"rows":-1.0}""", AtsErrorCodes.
InvalidArgument
)]
435
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
467
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
525
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
582
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
595
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
824
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
1231
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);
KubernetesManifestTests.cs (3)
129
Assert.Equal(AtsErrorCodes.
InvalidArgument
, exception.Error.Code);
138
Assert.Equal(AtsErrorCodes.
InvalidArgument
, preservedValueException.Error.Code);
167
Assert.Equal(AtsErrorCodes.
InvalidArgument
, exception.Error.Code);
ReferenceExpressionRefTests.cs (1)
244
Assert.Equal(AtsErrorCodes.
InvalidArgument
, ex.Error.Code);