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

TestOptions.CompareWhitespace Property


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.

public Nullable<bool> CompareWhitespace { get; set; }
Property Value
Type Description