public void ReturnsAnonymousForAnonymousSyncActionWhenDescribing() { var testee = new ArgumentLessGuardHolder(() => true); var description = testee.Describe(); description .Should() .Be("anonymous"); }
public void ReturnsFunctionNameForNonAnonymousAsyncActionWhenDescribing() { var testee = new ArgumentLessGuardHolder(AsyncGuard); var description = testee.Describe(); description .Should() .Be("AsyncGuard"); }