示例#1
0
        void Index_Post_InvalidDataReturnsError(Guid?value, HttpPostedFileBase file)
        {
            GenomeController gc = new GenomeController();
            ActionResult     r  = gc.Index(value, file);

            Assert.NotNull(r);
            Assert.IsType <ViewResult>(r);
        }
示例#2
0
        void Index_Post_ValidDataRedirectsHome(Guid?value, HttpPostedFileBase file)
        {
            GenomeController gc = new GenomeController();

            ActionResult r = gc.Index(value, file);

            Assert.NotNull(r);
            Assert.IsType <RedirectToRouteResult>(r);
        }
示例#3
0
        void Index_Get_ReturnsView(Guid?value)
        {
            GenomeController gc = new GenomeController();

            ActionResult v = gc.Index(value);

            Assert.NotNull(v);
            Assert.IsType <ViewResult>(v);
        }