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
I have two customizations that could be useful to include in this library, I think:
One that changes string generation to make it compatible with Verify (snapshot testing).
One that ensures doubles always have a fraction when generated (could add similar ones for float and decimal).
// The split of the seed and the GUID makes it possible for Verify to detect the GUID and normalize it across tests.fixture.Customize<string>(x =>x.FromSeed(seed =>$"{seed}_{Guid.NewGuid()}"));// This ensures that double's have fraction part.fixture.Customize<double>(c =>c.FromFactory<int>(i =>i*Math.PI));
Should we include these in ATC.Test?
The text was updated successfully, but these errors were encountered:
I have two customizations that could be useful to include in this library, I think:
double
s always have a fraction when generated (could add similar ones forfloat
anddecimal
).Should we include these in ATC.Test?
The text was updated successfully, but these errors were encountered: