상속: NamedObject
예제 #1
0
		private static void AssertTitle(XmlElement expected, Title actual)
		{	
			// the script code will add an * to every name...			
            Assert.AreEqual(expected.GetAttribute("name") + "*", actual.Name, "title.Name");

            Assert.AreEqual(expected.GetAttribute("summary"), actual.Description, "title.Description");
            Assert.AreEqual(ToDateTime(expected.GetAttribute("publishDate")), actual.PublishDate, "title.PublishDate");
            Assert.AreEqual(0, actual.Reviews.Count, "title.Reviews.Count");
		}
예제 #2
0
		public void AddTitle(Title title)
		{
			_titles[title.ID] = title;
		}