public void ReportFormat() { string missionName = "Test Mission"; string animalName = "Animal Bob"; DateTime timein = DateTime.Now; DateTime? timeout = null; var am = new AnimalMission() { MissionRoster = new MissionRoster { Mission = new Mission { Title = missionName }, TimeIn = timein, TimeOut = timeout }, Animal = new Animal { Name = animalName } }; Assert.AreEqual(string.Format(AnimalMission.ReportFormat, am.MissionRoster.Mission.Title, am.Animal.Name, am.MissionRoster.TimeIn, am.MissionRoster.TimeOut), am.GetReportHtml()); }
public void Validate() { var am = new AnimalMission(); Assert.IsTrue(am.Validate()); Assert.IsEmpty(am.Errors); }
public void Validate() { var am = new AnimalMission(); Assert.AreEqual(0, am.Validate(null).Count()); }