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]); }
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]); }
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]); }
public void TestRemoteInvocationException() { var mockFault = new MockFault(); var exception = new RemoteInvocationException("test", "remoteCallstack", "remoteErrorCode"); mockFault.SetExtraParameters(exception); Assert.Equal(exception.GetParameterString(), mockFault.Map[8]); }