Skip to content

Commit

Permalink
update VerifierSettings usage
Browse files Browse the repository at this point in the history
ModifySerialization removed: VerifyTests/Verify#533
DontScrubNumericIds removed: VerifyTests/Verify#526
  • Loading branch information
steverichey committed Sep 1, 2022
1 parent 20f95ca commit fd83d50
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions Corgibytes.Freshli.Lib.Test/Initializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,13 @@ public static void Initialize()
{
VerifyDiffPlex.Initialize();

VerifierSettings.ModifySerialization(settings =>
{
settings.DontScrubNumericIds();
settings.DontIgnoreEmptyCollections();
settings.DontScrubDateTimes();
settings.DontIgnoreFalse();
settings.MemberConverter<ScanResult, string>(
r => r.Filename,
(target, value) => value.Replace("\\", "/")
);
});
VerifierSettings.DontIgnoreEmptyCollections();
VerifierSettings.DontScrubDateTimes();
VerifierSettings.DontIgnoreFalse();
VerifierSettings.MemberConverter<ScanResult, string>(
r => r.Filename,
(target, value) => value.Replace("\\", "/")
);
}
}
}

0 comments on commit fd83d50

Please sign in to comment.