public void Update_AppName_Is_Successful() { //Arrange TResult <bool> expectedResponse = new TResult <bool> { Data = true, Rtncode = FaultInfoRcConstants.OK, RtnMsg = _request.AppName }; _request.IsTop = false; _request.CompanyApp = true; _appListService.GetIsTopAppList().Returns(_inSideOrOutSideApp); _appListService.GetDefineGroup(Arg.Any <List <string> >()).Returns(new List <WisDefineGroup>()); _appListService.ModifyAppName(Arg.Any <WisAppList>(), Arg.Any <List <WisAppUserList> >()).Returns(true); //Act TResult <bool> actualResponse = _targetObj.ModifyAppName(_request); //Assert Assert.AreEqual(expectedResponse.Rtncode, actualResponse.Rtncode); Assert.AreEqual(expectedResponse.RtnMsg, actualResponse.RtnMsg); Assert.AreEqual(expectedResponse.Data, actualResponse.Data); }