public void CreateToggleButton() { toggleButtonBehaviourMock_ = Substitute.For <IToggleButtonBehaviour>(); var toggleButton = componentFactory_.CreateToggleButton(toggleButtonBehaviourMock_); Assert.True(toggleButton != null); }