コード例 #1
0
ファイル: TestAnagramSearcher.cs プロジェクト: itwymt/Kata4
        public void test_test_non_existent_file()
        {
            var dictionaryReader = new DictionaryReader("c:\\111");

            var words = dictionaryReader.GetDictionary();

            words.Should().BeEmpty();
        }
コード例 #2
0
ファイル: TestAnagramSearcher.cs プロジェクト: itwymt/Kata4
        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"});
        }