Exemplo n.º 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");
        }
Exemplo n.º 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");
        }
Exemplo n.º 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");
        }