SIL.CoreImpl.SpellingHelper.ClearAllDictionaries C# (CSharp) Method

ClearAllDictionaries() static private method

For testing (so far), clear all dictionaries so we can make a new one and verify persistence.
static private ClearAllDictionaries ( ) : void
return void
		internal static void ClearAllDictionaries()
		{
			foreach (var kvp in m_spellers)
				kvp.Value.Dispose();
			m_spellers.Clear();
		}

Usage Example

Ejemplo n.º 1
0
        public void AddBaddBeforeStarSpellling()
        {
            MakeEmptyFooDictionary();
            var dict = SpellingHelper.GetSpellChecker("foo");

            dict.SetStatus("spellling", false);
            dict.SetStatus("badd", true);
            SpellingHelper.ClearAllDictionaries();
            dict = SpellingHelper.GetSpellChecker("foo");
            Assert.That(dict.Check("spellling"), Is.False);
            Assert.That(dict.Check("badd"), Is.True);
        }
All Usage Examples Of SIL.CoreImpl.SpellingHelper::ClearAllDictionaries