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