public void LoggingTest() { //Arrange var controller = new AdminLoggingController(new LoggingBLL(new LoggingDALStub())); //Act var result = (ViewResult)controller.Logging(); //Assert Assert.AreEqual(result.ViewName, "Logging"); }
public void getInteractionMessagesTest() { //Arrange var controller = new AdminLoggingController(new LoggingBLL(new LoggingDALStub())); var array = new JArray(); array.Add("LogData"); //Act var result = controller.getInteractionMessages(); //Assert Assert.AreEqual(result.Count, array.Count); for (int i = 0; i < result.Count; i++) Assert.AreEqual(result[i].ToString(), array[i].ToString()); }