You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The call [IsEqualTo] is ambiguous between the following methods or properties: 'TUnit.Assertions.Extensions.NumberIsExtensions.IsEqualTo(TUnit.Assertions.AssertConditions.Interfaces.IValueSource, TActual, string)' and 'TUnit.Assertions.Extensions.Generic.GenericIsExtensions.IsEqualTo(TUnit.Assertions.AssertConditions.Interfaces.IValueSource, TActual, string)'
I have multiple cases where it would be nice to have both methods in the same test class (of course I could always split the class but that creates a bunch of small files)
I assume you implement IsEqualTo for each number type (in my case int) and for IEquatable but all number types implement IEquatable. In .NET 9 you can fix this by adding the OverloadResolutionPriorityAttribute to one of the methods. but i think you only need one of the methods. OverloadResolutionPriorityAttribute only seems works for methods in the same class.
The call [IsEqualTo] is ambiguous between the following methods or properties: 'TUnit.Assertions.Extensions.NumberIsExtensions.IsEqualTo(TUnit.Assertions.AssertConditions.Interfaces.IValueSource, TActual, string)' and 'TUnit.Assertions.Extensions.Generic.GenericIsExtensions.IsEqualTo(TUnit.Assertions.AssertConditions.Interfaces.IValueSource, TActual, string)'
I have multiple cases where it would be nice to have both methods in the same test class (of course I could always split the class but that creates a bunch of small files)
I assume you implement IsEqualTo for each number type (in my case int) and for IEquatable but all number types implement IEquatable.
In .NET 9 you can fix this by adding the OverloadResolutionPriorityAttribute to one of the methods. but i think you only need one of the methods.OverloadResolutionPriorityAttribute only seems works for methods in the same class.