示例#1
0
        public void TestRemoteInvocationExceptionNull()
        {
            var mockFault = new MockFault();

            var exception = new RemoteInvocationException(message: null, errorCode: -1, errorData: null);

            mockFault.SetExtraParameters(exception, emptyCallstack: false);

            Assert.Equal(exception.GetParameterString(), mockFault.Map[7]);
        }
示例#2
0
        public void TestRemoteInvocationExceptionNull()
        {
            var mockFault = new MockFault();

            var exception = new RemoteInvocationException(message: null, remoteStack: null, remoteCode: null);

            mockFault.SetExtraParameters(exception);

            Assert.Equal(exception.GetParameterString(), mockFault.Map[8]);
        }
示例#3
0
        public void TestRemoteInvocationException()
        {
            var mockFault = new MockFault();

            var exception = new RemoteInvocationException("test", errorCode: 100, "remoteErrorData");

            mockFault.SetExtraParameters(exception, emptyCallstack: false);

            Assert.Equal(exception.GetParameterString(), mockFault.Map[7]);
        }
示例#4
0
        public void TestRemoteInvocationException()
        {
            var mockFault = new MockFault();

            var exception = new RemoteInvocationException("test", "remoteCallstack", "remoteErrorCode");

            mockFault.SetExtraParameters(exception);

            Assert.Equal(exception.GetParameterString(), mockFault.Map[8]);
        }