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"); }
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"); }
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"); }