public void Check_GetEventPlace_returns_event() { //Arrange var checker = new Event.Event(); checker = checker.getEvent("51", false); string expectedArray = "here"; //Act string result = checker.getPlace(); //String Assert Assert.AreEqual(expectedArray, result); }
public void Check_GetEventDate_returns_event() { //Arrange var checker = new Event.Event(); checker = checker.getEvent("51", false); string expectedArray = "12/10/2018"; //Act string resultDay = checker.getTheDate().Day.ToString(); string resultMonth = checker.getTheDate().Month.ToString(); string resultYear = checker.getTheDate().Year.ToString(); string result = resultMonth + "/" + resultDay + "/" + resultYear; //String Assert Assert.AreEqual(expectedArray, result); }