Struct-based ValueObjects doesn't work in Nsubstitute
's Arg.Any
or Arg.Is
methods
#707
Labels
bug
Something isn't working
Nsubstitute
's Arg.Any
or Arg.Is
methods
#707
Describe the bug
If you try to mock methods containing struct-based ValueObjects using the
NSubstitute
library,NSubstitute
throws an exception. Class-based ValueObjects work.Exception for the
StructString_ArgAny
test in the Repro:dotnet --info
:Steps to reproduce
Repro: https://github.com/KennethHoff/Repros/tree/master/VogenNsubstitute
Vogen
version: 5.0.5NSubstitute
version: 5.3.0.Net
version: 8.0.11 && 9.0.0Expected behaviour
class
andstruct
ValueObjects should both work as type parameters forArg.Any<{TYPE}>
andArg.Is<{TYPE}>
.The text was updated successfully, but these errors were encountered: