public void Execute_SecondColumn_ColumnAddedWithDefaultValue() { var state = new GenerationState(); state.TestCaseCollection.Scope.Content.Columns.Add("firstColumn"); var newRow = state.TestCaseCollection.Scope.Content.NewRow(); newRow[0] = "firstCell"; state.TestCaseCollection.Scope.Content.Rows.Add(newRow); var action = new AddCaseAction("myColumn"); action.Execute(state); Assert.That(state.TestCaseCollection.Scope.Content.Rows[0].ItemArray[1], Is.EqualTo("(none)")); }
public void Execute_SecondColumn_ColumnAdded() { var state = new GenerationState(); state.TestCaseCollection.Scope.Content.Columns.Add("firstColumn"); var newRow = state.TestCaseCollection.Scope.Content.NewRow(); newRow[0] = "firstCell"; state.TestCaseCollection.Scope.Content.Rows.Add(newRow); var action = new AddCaseAction("myColumn"); action.Execute(state); Assert.That(state.TestCaseCollection.Scope.Content.Columns, Has.Count.EqualTo(2)); }