protected override void SetUp() { timeStamp = new DateTime(2008, 4, 3, 13, 2, 59).ToLocalTime(); itemID = 1992274965; item = new IncidentRSSItem(10, "Test Incident", timeStamp, itemID, "going", "small", 1); }
protected override void SetUp() { timeStamp = new DateTime(2008, 4, 3, 13, 2, 59).ToLocalTime(); itemID = 1992274965; item = new IncidentRSSItem(10, "Test Incident", timeStamp, itemID, "going", "small", 1); }
public void Create_AddsXmlFromGivenIncidents() { IIncidentRSSItem incident1 = NewMock <IIncidentRSSItem>(); Expect.Once.On(incident1).Method("GetXml").WithNoArguments().Will(Return.Value("<item>TEST ITEM 1</item>\r\n")); string rss = generator.GetXml(incident1); XmlDocument xmlDocument = new XmlDocument(); xmlDocument.LoadXml(rss); Assert.AreEqual("TEST ITEM 1", xmlDocument.SelectSingleNode("/rss/channel/item").InnerText); HasCorrectHeader(xmlDocument); }