public void Invalid(int statusCode, string protocol, string version) { var instance = new StatusLine { StatusCode = statusCode, Protocol = protocol, Version = version }; Assert.False(instance.Valid); Assert.Throws <InvalidOperationException>(() => instance.Validate()); }
public void Valid(int statusCode, string protocol, string version) { var instance = new StatusLine { StatusCode = statusCode, Protocol = protocol, Version = version }; Assert.True(instance.Valid); Assert.True(instance.Validate() != null); }