Ejemplo n.º 1
0
        public void IsNonODataAction_ThrowsArgumentNull_Action()
        {
            // Arrange & Act & Assert
            ActionModel action = null;

            ExceptionAssert.ThrowsArgumentNull(() => action.IsODataIgnored(), "action");
        }
Ejemplo n.º 2
0
        public void IsNonODataAction_ReturnsAsExpected(bool expected)
        {
            // Arrange
            List <object> attributes = new List <object>();

            if (expected)
            {
                attributes.Add(new ODataIgnoredAttribute());
            }
            ActionModel action = new ActionModel(_methodInfo, attributes);

            // Act
            bool actual = action.IsODataIgnored();

            // Assert
            Assert.Equal(expected, actual);
        }