コード例 #1
0
        public void AppendToFeedWithinLimits()
        {
            if (File.Exists(dataFile)) File.Delete(dataFile);

            RssPublisher publisher = new RssPublisher();
            IntegrationResult result = GenerateResult(1);

            publisher.Run(result);
            publisher.Run(result);
            Assert.IsTrue(File.Exists(dataFile));
            CheckAgainstExpected("WithinLimits");
        }
コード例 #2
0
        public void AppendToFeedBeyondLimits()
        {
            if (File.Exists(dataFile)) File.Delete(dataFile);

            RssPublisher publisher = new RssPublisher();
            publisher.NumberOfItems = 1;
            IntegrationResult result = GenerateResult(2);
            result.ProjectUrl = "http://viewproject";

            publisher.Run(result);
            publisher.Run(result);
            Assert.IsTrue(File.Exists(dataFile));
            CheckAgainstExpected("BeyondLimits");
        }
コード例 #3
0
        public void GenerateNewFeed()
        {
            if (File.Exists(dataFile)) File.Delete(dataFile);

            RssPublisher publisher = new RssPublisher();
            IntegrationResult result = GenerateResult(0);

            publisher.Run(result);
            Assert.IsTrue(File.Exists(dataFile));
            CheckAgainstExpected("NewFeed");
        }