public void OneTimeSetup() { _addFragmentInstanceType = typeof(AddFragment); _addFragmentInstanceFixture = this.Create <AddFragment>(true); _addFragmentInstance = _addFragmentInstanceFixture ?? this.Create <AddFragment>(false); CurrentInstance = _addFragmentInstanceFixture; ConfigureIgnoringTests(); }
public void AUT_Constructor_AddFragment_Instantiated_Without_Parameter_No_Throw_Exception_Test() { // Arrange AddFragment instance = null; // Act var exception = CreateAnalyzer.GetThrownExceptionWhenCreate(out instance); // Assert instance.ShouldNotBeNull(); exception.ShouldBeNull(); _addFragmentInstanceType.ShouldNotBeNull(); _addFragmentInstance.ShouldNotBeNull(); _addFragmentInstanceFixture.ShouldNotBeNull(); _addFragmentInstance.ShouldBeAssignableTo <AddFragment>(); _addFragmentInstanceFixture.ShouldBeAssignableTo <AddFragment>(); }