Exemplo n.º 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);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        void Index_Get_ReturnsView(Guid?value)
        {
            GenomeController gc = new GenomeController();

            ActionResult v = gc.Index(value);

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