コード例 #1
0
            public void ShouldNotThrowExceptionWhenValid()
            {
                IAction action = new LocationAction()
                {
                    Label = "Test"
                };

                action.Validate();
            }
コード例 #2
0
            public void ShouldThrowExceptionWhenLabelIsNull()
            {
                IAction action = new LocationAction();

                ExceptionAssert.Throws <InvalidOperationException>("The label cannot be null.", () =>
                {
                    action.Validate();
                });
            }