Skip to content

Latest commit

 

History

History
80 lines (34 loc) · 1.21 KB

File metadata and controls

80 lines (34 loc) · 1.21 KB

Guids

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

Disable

To disable this behavior use:

Instance

snippet: DontScrubGuids

Fluent

snippet: DontScrubGuidsFluent

Globally

snippet: DontScrubGuidsGlobal

Inline Guids

Strings containing inline Guids can also be scrubbed. To enable this behavior, use:

Instance

snippet: ScrubInlineGuidsInstance

Fluent

snippet: ScrubInlineGuidsFluent

Globally

snippet: ScrubInlineGuidsGlobal

Named Guid

Specific Guids can be named. When any of those Guids are found, it will be replaced with the supplied name.

Instance

snippet: NamedGuidInstance

Instance

snippet: NamedGuidFluent

Globally

snippet: NamedGuidGlobal

Inferred Name

The name can be inferred from the variable name by omitting the name argument:

snippet: InferredNamedGuidFluent

Result:

snippet: GuidScrubberTests.InferredNamedGuidFluent.verified.txt