There is an ActionFilter on my controller-class. The OnActionExecuting method gets called, when an action of the controller is called in a web appl
ActionFilter
OnActionExecuting
to write a separate unit test which proves that the action is decorated with the correct attribute
Here is how you can write such a unit test
Type t = typeof(MyController); Assert.IsTrue(t.GetCustomAttributes(typeof(MyCustomAttribute)).Length > 0);