public void RandomTests()
 {
     for (var i = 0; i < 10; i++)
     {
         var source = SortingTaskUtils.GenerateUris();
         var result = source.OrderByDomain();
         Assert.IsTrue(SortingTaskUtils.AreDomainsEquals(result, source));
     }
 }
        public void SimpleTests()
        {
            var source = new[]
            {
                "http://www.google.en/?x=jsdfkj",
                "http://www.google.de/?x=jsdfkj",
                "http://www.google.com/?x=jsdfkj",
                "http://www.google.com/?x=jsdfkj",
                "http://www.google.org/?x=jsdfkj",
                "http://www.google.gov/?x=jsdfkj",
            };
            var result = source.OrderByDomain();

            Assert.IsTrue(SortingTaskUtils.AreDomainsEquals(result, source));

            //should be sorted  to
            //"http://www.google.com/?x=jsdfkj",
            //"http://www.google.com/?x=jsdfkj",
            //"http://www.google.gov/?x=jsdfkj",
            //"http://www.google.org/?x=jsdfkj",
            //"http://www.google.de/?x=jsdfkj",
            //"http://www.google.en/?x=jsdfkj",
        }