By default guids are sanitized during verification. This is done by finding each guid and taking a counter based that that specific guid. That counter is then used replace the guid values. This allows for repeatable tests when guid values are changing.
snippet: guid
Results in the following:
snippet: SerializationTests.ReUseGuid.verified.txt
To disable this behavior use:
snippet: DontScrubGuids
snippet: DontScrubGuidsFluent
snippet: DontScrubGuidsGlobal
Strings containing inline Guids can also be scrubbed. To enable this behavior, use:
snippet: ScrubInlineGuidsInstance
snippet: ScrubInlineGuidsFluent
snippet: ScrubInlineGuidsGlobal
Specific Guids can be named. When any of those Guids are found, it will be replaced with the supplied name.
snippet: NamedGuidInstance
snippet: NamedGuidFluent
snippet: NamedGuidGlobal
The name can be inferred from the variable name by omitting the name argument:
snippet: InferredNamedGuidFluent
Result:
snippet: GuidScrubberTests.InferredNamedGuidFluent.verified.txt