Пример #1
0
        public void can_download_ansi_feed()
        {
            const string expected = "NHibernate.Profiler-Build-";

            var ws  = new SimpleWebSource("http://builds.hibernatingrhinos.com/latest/nhprof");
            var str = ws.GetUpdatesFeed();

            Assert.AreEqual(expected, str.Substring(0, expected.Length));
        }
Пример #2
0
        public void can_download_ansi_feed()
        {
            const string expected = "<!doctype html>";

            var ws  = new SimpleWebSource("http://builds.hibernatingrhinos.com/latest/nhprof");
            var str = ws.GetUpdatesFeed();

            Assert.IsNotNull(str);
            str = str.Trim();
            Assert.IsTrue(str.StartsWith(expected, StringComparison.InvariantCultureIgnoreCase));
        }