public void ShouldNotThrowExceptionWhenValid() { IAction action = new LocationAction() { Label = "Test" }; action.Validate(); }
public void ShouldThrowExceptionWhenLabelIsNull() { IAction action = new LocationAction(); ExceptionAssert.Throws <InvalidOperationException>("The label cannot be null.", () => { action.Validate(); }); }