Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        public void WhenOnlyMappingIsProvidedOnlyConverterIsBeingChanged()
        {
            var rules = new Rules("only_mapping_test");

            TestWhenOnlyMappingIsProvidedOnlyConverterIsBeingChanged(rules);
        }
Esempio n. 3
0
        public void WhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged()
        {
            var rules = new Rules("only_letters_to_omit_test");

            TestWhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged(rules);
        }
Esempio n. 4
0
        public void WhenFullConverterIsProvidedConverterAndLettersToOmitAreBeingChanged()
        {
            var rules = new Rules("mapping_and_letters_to_omit_test");

            TestWhenFullConverterIsProvidedConverterAndLettersToOmitAreBeingChanged(rules);
        }
Esempio n. 5
0
        public void WhenConverterFilePathAndOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged()
        {
            var rules = new Rules("only_letters_to_omit_test", _converterFilePath);

            TestWhenOnlyLettersToOmitAreProvidedOnlyLettersToOmitAreBeingChanged(rules);
        }
Esempio n. 6
0
 public NumberResolver(string dictionaryPath)
 {
     DictionarySource = new DictionarySource(dictionaryPath);
     Rules = new Rules();
 }
Esempio n. 7
0
 public NumberResolver()
 {
     DictionarySource = new DictionarySource();
     Rules = new Rules();
 }