public void TestOnVisible_FromNextStepSkipsToChoiceStep() { IStepContent <IPublishDialogStep> nextStepContent = null; _publishDialogMock.Setup(pd => pd.NavigateToStep(It.IsAny <IStepContent <IPublishDialogStep> >())) .Callback <IStepContent <IPublishDialogStep> >(stepContent => nextStepContent = stepContent); _objectUnderTest.ActionCommand.Execute(null); _objectUnderTest.OnVisible(nextStepContent.ViewModel); _publishDialogMock.Verify(pd => pd.PopStep()); }
public void TestPreviousCommand_UpdatesContent() { IStepContent <IPublishDialogStep> initalContent = _objectUnderTest.Content; _objectUnderTest.NavigateToStep(_stepContentMock.Object); _changedProperties.Clear(); _objectUnderTest.PrevCommand.Execute(null); Assert.AreEqual(initalContent, _objectUnderTest.Content); CollectionAssert.Contains(_changedProperties, nameof(_objectUnderTest.Content)); }
public void TestOnVisible_FromGceStepDeletesChoiceProperty() { IStepContent <IPublishDialogStep> nextStepContent = null; _publishDialogMock.Setup(pd => pd.NavigateToStep(It.IsAny <IStepContent <IPublishDialogStep> >())) .Callback <IStepContent <IPublishDialogStep> >(stepContent => nextStepContent = stepContent); _objectUnderTest.ActionCommand.Execute(null); _objectUnderTest.OnVisible(nextStepContent.ViewModel); _propertyServiceMock.Verify( ps => ps.DeleteUserProperty(_dteProject, ChoiceStepViewModel.GoogleCloudPublishChoicePropertyName)); }
public int IndexOf(IStepContent item) { return PluginTrackables.IndexOf(item); }
public void CopyTo(IStepContent[] array, int arrayIndex) { PluginTrackables.CopyTo(array, arrayIndex); }
public bool Contains(IStepContent item) { return PluginTrackables.Contains(item); }
public void Add(IStepContent item) { PluginTrackables.Add(item); }
public bool Remove(IStepContent item) { return PluginTrackables.Remove(item); }
public void Insert(int index, IStepContent item) { PluginTrackables.Insert(index, item); }