public void Given_Parameter_When_IsSupported_Invoked_Then_It_Should_Return_Result(string verb, bool expected) { var method = new HttpMethod(verb); var result = HttpMethodExtensions.IsSupported(method); result.Should().Be(expected); }
public void Given_Null_Parameter_When_IsSupported_Invoked_Then_It_Should_Throw_Exception() { Action action = () => HttpMethodExtensions.IsSupported(null); action.Should().Throw <ArgumentNullException>(); }