Exemple #1
0
        public void IndexTest()
        {
            var controller = new WindMonitoringController();
            var result     = controller.Index();

            Assert.IsInstanceOfType(result, typeof(ViewResult));
        }
Exemple #2
0
        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)));
        }
Exemple #3
0
        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);
        }