示例#1
0
        public void TestNonExistingSite()
        {
            new App();

            List <KeywordGridRow> gridRows = Website.AnalyseUrl(NonExistingSite);

            Debug.Assert(gridRows == null);
        }
示例#2
0
        public void TestEmptyKeywordAnalysys()
        {
            List <KeywordGridRow> gridRows = Website.AnalyseUrl(NoKeywordTag);

            Debug.Assert(gridRows == null);

            gridRows = Website.AnalyseUrl(EmptyKeywordContent);
            Debug.Assert(gridRows == null);
        }
示例#3
0
        public void TestSingleKeyword()
        {
            List <KeywordResult> KeywordResults = new List <KeywordResult>();

            KeywordResults.Add(new KeywordResult("This is", 3));

            List <KeywordGridRow> gridRows = Website.AnalyseUrl(SingleKeywordTag);

            Debug.Assert(gridRows != null);
            CompareGridRow(gridRows, KeywordResults);
        }