private getDatabaseMessages ( ) : Newtonsoft.Json.Linq.JArray | ||
Résultat | Newtonsoft.Json.Linq.JArray |
public void getDatabaseMessagesTest() { //Arrange var controller = new AdminLoggingController(new LoggingBLL(new LoggingDALStub())); var array = new JArray(); array.Add("LogData"); //Act var result = controller.getDatabaseMessages(); //Assert Assert.AreEqual(result.Count, array.Count); for (int i = 0; i < result.Count; i++) Assert.AreEqual(result[i].ToString(), array[i].ToString()); }