Michael Fry
Michael Fry
Test case: ```csharp private record RecordWithOneProperty2(int Property); [Fact] public void ItCanOverrideAMemberOfATypeRegisteredInTheFactory() { var genFactory = Gen .Factory() .RegisterType(Gen.Constant(new RecordWithOneProperty2(1))); var gen = genFactory .Create() .OverrideMember(x => x.Property, Gen.Constant(2)); var instance...
Discovered while using GalaxyCheck in another project. ``` public record MyRecord(string A, string B); public static readonly IGenFactory DefaultGenFactory = Gen .Factory() .RegisterType(String) .RegisterType(DefaultGenFactory .Create() .OverrideMember(x => x.A, Gen.Constant("a"))); ```...
`Gen.Create()` should generate like `Gen.String().OrNull()`. That is, the traversing reflection-based generator in Gen.Create should be able to recognise types that have been declared as nullable, and generate them as null.
Affected generators - Strings - Collections (List, Set See: #276
# Context Two big concerns for GC, which are conflicting in this instance: - It should work with minimal configuration - It should test a large range of values The...
- Add option to print out repeat parameters (for debugging)
- `GenAttribute` on a parameter of a different type - Discarding the result of an immutable operations (any Gen.* call) - Code transformation between reflected and linq properties - Code...