Пример #1
0
        public void TestSubdomainVisitsCase1()
        {
            // Arrange
            CreateTestData();

            // Act
            var subDomainsVisit = DomainVisits.SubdomainVisits(cpDomains1);

            // Assert
            Assert.AreEqual("10000 google.com", subDomainsVisit[0], "Different Value Expected");
            Assert.AreEqual("10050 com", subDomainsVisit[1], "Different Value Expected");
            Assert.AreEqual("50 yahoo.com", subDomainsVisit[2], "Different Value Expected");
        }
Пример #2
0
        public void TestSubdomainVisitsCase2()
        {
            // Arrange
            CreateTestData();

            // Act
            var subDomainsVisit = DomainVisits.SubdomainVisits(cpDomains2);

            // Assert
            Assert.AreEqual("900 google.mail.com", subDomainsVisit[0], "Different Value Expected");
            Assert.AreEqual("901 mail.com", subDomainsVisit[1], "Different Value Expected");
            Assert.AreEqual("951 com", subDomainsVisit[2], "Different Value Expected");
            Assert.AreEqual("50 yahoo.com", subDomainsVisit[3], "Different Value Expected");
            Assert.AreEqual("1 intel.mail.com", subDomainsVisit[4], "Different Value Expected");
            Assert.AreEqual("5 wiki.org", subDomainsVisit[5], "Different Value Expected");
            Assert.AreEqual("5 org", subDomainsVisit[6], "Different Value Expected");
        }