public void RoleFunctionEditTest() { // act var result = _target.RoleFunctionEdit() as ViewResult; // assert // 驗證 Action Assert.IsTrue(!string.IsNullOrEmpty(result.ViewName) && result.ViewName == "RoleFunctionEdit"); }