Assist Unit Testing with predicatble auto-generated data



The following table shows the default behaviour for the given types. These values are used when creating and populating instances.

The default value varies based on whether the object is created directly via a constructor, or whether it’s used to set a member on another object.

Default Behaviour New Instances Member Instances
string string MemberName
Uri http://uri/ http://membername/
FileInfo C:\filename C:\membername
DirectoryInfo C:\directoryname C:\membername
IntPtr IntPtr.Zero IntPtr.Zero
Guid Guid.NewGuid() Guid.NewGuid()
CultureInfo Thread.CurrentThread.CurrentCulture Thread.CurrentThread.CurrentCulture

By default the Max() configuration is set, and all value types default to their Max value.