public void VsSessionHost_ClearActiveSection_ClearState() { // Arrange VsSessionHost testSubject = this.CreateTestSubject(null); ISectionController section = ConfigurableSectionController.CreateDefault(); testSubject.SetActiveSection(section); // Act testSubject.ClearActiveSection(); // Assert testSubject.ActiveSection.Should().BeNull(); section.ViewModel.State.Should().BeNull(); }
public void VsSessionHost_ClearActiveSection_ClearState() { // Setup VsSessionHost testSubject = this.CreateTestSubject(null); ISectionController section = ConfigurableSectionController.CreateDefault(); testSubject.SetActiveSection(section); // Act testSubject.ClearActiveSection(); // Verify Assert.IsNull(testSubject.ActiveSection); Assert.IsNull(section.ViewModel.State); }
public void VsSessionHost_SetActiveSection_ChangeHost() { // Arrange VsSessionHost testSubject = this.CreateTestSubject(null); ISectionController section = ConfigurableSectionController.CreateDefault(); // Sanity this.stepRunner.CurrentHost.Should().BeNull(); // Act testSubject.SetActiveSection(section); // Assert this.stepRunner.CurrentHost.Should().Be(section.ProgressHost); }
public void VsSessionHost_SetActiveSection_ChangeHost() { // Setup VsSessionHost testSubject = this.CreateTestSubject(null); ISectionController section = ConfigurableSectionController.CreateDefault(); // Sanity this.stepRunner.AssertNoCurrentHost(); // Act testSubject.SetActiveSection(section); // Verify this.stepRunner.AssertCurrentHost(section.ProgressHost); }