private void TestWhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged(Rules rules) { for (int i = 0; i < 10; i++) { Assert.AreNotEqual(_expectedMapping[i], rules.Converter[i.ToString()]); } Assert.AreEqual(_lettersToOmit, rules.LettersToOmit); }
public void WhenOnlyMappingIsProvidedOnlyConverterIsBeingChanged() { var rules = new Rules("only_mapping_test"); TestWhenOnlyMappingIsProvidedOnlyConverterIsBeingChanged(rules); }
public void WhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged() { var rules = new Rules("only_letters_to_omit_test"); TestWhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged(rules); }
public void WhenFullConverterIsProvidedConverterAndLettersToOmitAreBeingChanged() { var rules = new Rules("mapping_and_letters_to_omit_test"); TestWhenFullConverterIsProvidedConverterAndLettersToOmitAreBeingChanged(rules); }
public void WhenConverterFilePathAndOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged() { var rules = new Rules("only_letters_to_omit_test", _converterFilePath); TestWhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged(rules); }
public NumberResolver(string dictionaryPath) { DictionarySource = new DictionarySource(dictionaryPath); Rules = new Rules(); }
public NumberResolver() { DictionarySource = new DictionarySource(); Rules = new Rules(); }