Ejemplo n.º 1
0
        public void IsPostReturnsFalseWhenMethodIsNotPost() {
            // Arrange
            var methods = new[] { "GET", "DELETE", "PUT", "RANDOM" };


            // Act and Assert
            Assert.IsTrue(methods.All(method => !CreateMockPageWithContext(method).Object.IsPost));
        }