public void IsNonODataAction_ThrowsArgumentNull_Action() { // Arrange & Act & Assert ActionModel action = null; ExceptionAssert.ThrowsArgumentNull(() => action.IsNonODataAction(), "action"); }
public void IsNonODataAction_ReturnsAsExpected(bool expected) { // Arrange List <object> attributes = new List <object>(); if (expected) { attributes.Add(new NonODataActionAttribute()); } ActionModel action = new ActionModel(_methodInfo, attributes); // Act bool actual = action.IsNonODataAction(); // Assert Assert.Equal(expected, actual); }