public void IsPostReturnsFalseWhenMethodIsNotPost() { // Arrange var methods = new[] { "GET", "DELETE", "PUT", "RANDOM" }; // Act and Assert Assert.IsTrue(methods.All(method => !CreateMockPageWithContext(method).Object.IsPost)); }
public void IsPostReturnsFalseWhenMethodIsNotPost() { // Arrange var methods = new[] { "GET", "DELETE", "PUT", "RANDOM" }; // Act and Assert Assert.IsTrue(methods.All(method => !CreateMockPageWithContext(method).Object.IsPost)); }