コード例 #1
0
        public ViewResult Timeout()
        {
            var model = new AutoTestModel
            {
                Total = -1,
                Fail = -1,
                TestDescription = "timeout"
            };

            return View("AutoTest", model);
        }
コード例 #2
0
        public ViewResult Error()
        {
            var model = new AutoTestModel
            {
                Error = 1,
                Fail = 0,
                Total = 1,
                TestDescription = "error"
            };

            return View("AutoTest", model);
        }
コード例 #3
0
        public ViewResult Pass()
        {
            var model = new AutoTestModel
                {
                    Error = 0,
                    Fail = 0,
                    Total = 1,
                    TestDescription = "passing"
                };

            return View("AutoTest", model);
        }
コード例 #4
0
        public ViewResult Fail()
        {
            var model = new AutoTestModel
            {
                Error = 0,
                Fail = 4,
                Total = 10,
                TestDescription = "failing"
            };

            return View("AutoTest", model);
        }