public void OneTimeSetup() { _noteEditorInstanceType = typeof(NoteEditor); _noteEditorInstanceFixture = this.Create <NoteEditor>(true); _noteEditorInstance = _noteEditorInstanceFixture ?? this.Create <NoteEditor>(false); CurrentInstance = _noteEditorInstanceFixture; ConfigureIgnoringTests(); }
public void AUT_Constructor_NoteEditor_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange NoteEditor instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); _noteEditorInstanceType.ShouldNotBeNull(); _noteEditorInstance.ShouldNotBeNull(); _noteEditorInstanceFixture.ShouldNotBeNull(); _noteEditorInstance.ShouldBeAssignableTo <NoteEditor>(); _noteEditorInstanceFixture.ShouldBeAssignableTo <NoteEditor>(); }