Fix Trim analysis warning IL2075: Elastic.Transport.Extensions.EnumExtensions.GetEnumName(Enum) #234
GitHub Actions / Test Results
failed
May 28, 2025 in 0s
178 tests run, 176 passed, 0 skipped, 2 failed.
Annotations
Check failure on line 1 in tests\Elastic.Transport.Tests\UsageTests.cs
github-actions / Test Results
UsageTests.EnumsUseEnumMemberAttribute
Expected response.ApiCallDetails.Uri to be http://localhost:9200/?enum=different, but found http://localhost:9200/?enum=Value.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.TestFrameworkProvider.Throw(String message)
at FluentAssertions.Execution.DefaultAssertionStrategy.HandleFailure(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Execution.AssertionScope.FailWith(String message, Object[] args)
at FluentAssertions.Primitives.ObjectAssertions`2.Be(TSubject expected, String because, Object[] becauseArgs)
at Elastic.Transport.Tests.UsageTests.EnumsUseEnumMemberAttribute() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.Tests\UsageTests.cs:line 42
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
Check failure on line 1 in tests\Elastic.Transport.Tests\UsageTests.cs
github-actions / Test Results
UsageTests.EnumsUseEnumMemberAttribute
Expected object to be http://localhost:9200/?enum=different, but found http://localhost:9200/?enum=Value.
Raw output
at FluentAssertions.Execution.XUnit2TestFramework.Throw(String message)
at FluentAssertions.Execution.AssertionScope.FailWith(Func`1 failReasonFunc)
at FluentAssertions.Primitives.ObjectAssertions`2.Be(TSubject expected, String because, Object[] becauseArgs)
at Elastic.Transport.Tests.UsageTests.EnumsUseEnumMemberAttribute() in D:\a\elastic-transport-net\elastic-transport-net\tests\Elastic.Transport.Tests\UsageTests.cs:line 43
Loading