Exemplo n.º 1
0
        public void test_test_non_existent_file()
        {
            var dictionaryReader = new DictionaryReader("c:\\111");

            var words = dictionaryReader.GetDictionary();

            words.Should().BeEmpty();
        }
Exemplo n.º 2
0
        public void test_finding_string()
        {
            var dictionaryReader = new DictionaryReader("c:\\dicttest.txt");

            var words = dictionaryReader.GetDictionary();

            words.Should().BeEquivalentTo(new List<string> {"123", "132", "1234", "1456", "abcd", "window", "store", "hello"});
        }