public void IndexTest() { var controller = new WindMonitoringController(); var result = controller.Index(); Assert.IsInstanceOfType(result, typeof(ViewResult)); }
public void GetPredictedSpeedTest() { var controller = new WindMonitoringController(); var result = controller.GetPredictedSpeed("KA-BA-01") as JsonResult; Assert.IsInstanceOfType(result, typeof(JsonResult)); Assert.AreEqual(1, ((int)(result.Data))); }
public void GetInitialDataTest() { var controller = new WindMonitoringController(); var result = controller.GetInitialData() as JsonResult; Assert.IsInstanceOfType(result, typeof(JsonResult)); Assert.AreEqual(4, ((WindMonitoring)(result.Data)).StateList.Count); }