MetalamaAPI documentationAdvanced APIMetalama.​Testing.​Aspect­TestingTest­OptionsCompare­Whitespace
Open sandboxFocus

TestOptions.CompareWhitespace Property

CompareWhitespace

Gets or sets a value indicating whether whitespace are taken into account while comparing the the expected output t.cs file with the actual output. The default behavior is false. To enable this option in a test, add this comment to your test file: // @PreserveWhitespace.

Declaration
public Nullable<bool> CompareWhitespace { get; set; }
Property Value
Type Description
System.Nullable<System.Boolean>