public void SelectOperation_Null_HttpRequestMessage_Throws() { HttpOperationSelector selector = new SHttpOperationSelector(); HttpRequestMessage message = null; ExceptionAssert.ThrowsArgumentNull("message", () => selector.SelectOperation(message)); }
public void SelectOperation_Null_Message_Throws() { IDispatchOperationSelector selector = new SHttpOperationSelector(); Message message = null; ExceptionAssert.ThrowsArgumentNull("message", () => selector.SelectOperation(ref message)); }
public void SelectOperation_Non_Http_Message_Throws() { IDispatchOperationSelector selector = new SHttpOperationSelector(); Message message = Message.CreateMessage(MessageVersion.None, "notUsed"); ExceptionAssert.Throws<InvalidOperationException>( SR.HttpOperationSelectorNullRequest(typeof(SHttpOperationSelector).Name, typeof(HttpRequestMessage).Name, "SelectOperation"), () => selector.SelectOperation(ref message)); }
public void SelectOperation_Non_Http_Message_Throws() { IDispatchOperationSelector selector = new SHttpOperationSelector(); Message message = Message.CreateMessage(MessageVersion.None, "notUsed"); ExceptionAssert.Throws <InvalidOperationException>( SR.HttpOperationSelectorNullRequest(typeof(SHttpOperationSelector).Name, typeof(HttpRequestMessage).Name, "SelectOperation"), () => selector.SelectOperation(ref message)); }
public void SelectOperation_Null_Message_Throws() { IDispatchOperationSelector selector = new SHttpOperationSelector(); Message message = null; ExceptionAssert.ThrowsArgumentNull("message", () => selector.SelectOperation(ref message)); }
public void SelectOperation_Null_HttpRequestMessage_Throws() { HttpOperationSelector selector = new SHttpOperationSelector(); HttpRequestMessage message = null; ExceptionAssert.ThrowsArgumentNull("message", () => selector.SelectOperation(message)); }