Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 190
Configuration
GregFinzer edited this page Dec 21, 2017
·
2 revisions
CompareLogiclogic=newCompareLogic();logic.Config.MaxDifferences=100;ComparisonConfigconfig=newComparisonConfig();config.MaxDifferences=100;CompareLogiclogic=newCompareLogic(config);Example
[Test]publicvoidLoadConfigurationTest(){//ArrangeCompareLogiccompareLogic=newCompareLogic();stringfilePath=Path.Combine(AppDomain.CurrentDomain.BaseDirectory,"config.json");compareLogic.Config.CaseSensitive=false;compareLogic.SaveConfiguration(filePath);//ActcompareLogic.Config=newComparisonConfig();//Wipe out the current configcompareLogic.LoadConfiguration(filePath);//AssertAssert.IsFalse(compareLogic.Config.CaseSensitive);}Edit the resource file for the application settings