public void CheckIsInStateShouldTrowExceptionBeforeSafeTransformToState() { Assert.Throws(Is.TypeOf <IllegalStateException>().And.Message.EqualTo("Not in state: 'Test'"), () => stateHelper.CheckIsInState()); }