コード例 #1
0
        public void PlayStreamFile_ErrorResult_Failure()
        {
            //error response
            _mockTransport.Setup(x => x.GetCupiResponse(It.IsAny <string>(), It.IsAny <MethodType>(), It.IsAny <ConnectionServerRest>(),
                                                        It.IsAny <Dictionary <string, string> >())).Returns(new WebCallResult
            {
                Success = false,
            });

            var res = _mockPhoneRecording.PlayStreamFile("streamid");

            Assert.IsFalse(res.Success, "PlayStreamFile with error response from server should fail");
        }
コード例 #2
0
        public void PlayStreamFile_NoRecording_Failure()
        {
            var res = _recording.PlayStreamFile();

            Assert.IsFalse(res.Success, "Call to play stream file back before something is recorded did not fail.");
        }