コード例 #1
0
        public void ReturnsAnonymousForAnonymousActionWhenDescribing()
        {
            var testee = new ArgumentLessActionHolder(() => { });

            var description = testee.Describe();

            description
            .Should()
            .Be("anonymous");
        }
コード例 #2
0
        public void ReturnsFunctionNameForNonAnonymousActionWhenDescribing()
        {
            var testee = new ArgumentLessActionHolder(Action);

            var description = testee.Describe();

            description
            .Should()
            .Be("Action");
        }