Exemple #1
0
        public void TestProjectController_ProjectEditLocation(string httpMethod)
        {
            SetUpProjectControllerForTesting(httpMethod);
            projectController.CurrentUser = user;

            ViewResult result = projectController.ProjectEditLocation(projectId) as ViewResult;

            Assert.That(result, Is.Not.EqualTo(null));
            Assert.That(result.ViewName, Is.EqualTo("ProjectEditLocation"));
            Assert.That(result.Model, Is.Not.EqualTo(null));

            Assert.That(result.Model, Is.EqualTo(projectId.ToString()));
        }