예제 #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);
        }