예제 #1
0
        public void InvalidCharSentenceInput()
        {
            Glossary glossary = Load.BuildGlossary();
            Sentence s1       = new Sentence("}[/", glossary, out string e1);

            Assert.IsTrue(e1 != null);
        }
예제 #2
0
        public void EmptySentenceInput()
        {
            Glossary glossary = Load.BuildGlossary();
            Sentence s        = new Sentence("", glossary, out string e);

            Assert.IsTrue(e != null);
        }
예제 #3
0
        public void InvalidWordSentenceInput()
        {
            Glossary glossary = Load.BuildGlossary();
            Sentence s1       = new Sentence("the", glossary, out string e1);

            Assert.IsTrue(e1 != null);
            Sentence s2 = new Sentence("a an the", glossary, out string e2);

            Assert.IsTrue(e2 != null);
        }
예제 #4
0
        public void WhitespaceSentenceInput()
        {
            Glossary glossary = Load.BuildGlossary();
            Sentence s1       = new Sentence(" ", glossary, out string e1);

            Assert.IsTrue(e1 != null);
            Sentence s2 = new Sentence("\t", glossary, out string e2);

            Assert.IsTrue(e2 != null);
            Sentence s3 = new Sentence(" \t  ", glossary, out string e3);

            Assert.IsTrue(e3 != null);
        }
예제 #5
0
 public void NullSentenceInput()
 {
     Glossary glossary = Load.BuildGlossary();
     Sentence s        = new Sentence(null, glossary, out string e);
 }