public void TestAction_RemoveOperationForComponentTypeInInstantiateNodeAction([Values] TestingMode mode) { var compType = typeof(Translation).GenerateTypeHandle(Stencil); PrepareGraph(GraphModel); m_InstantiateModel.SetComponentOperation(compType, ComponentOperation.ComponentOperationType.SetComponent); TestPrereqActionPostreq(mode, () => { var model = GraphModel.FindInstantiateNodeModel(); Assert.That(model, Is.Not.Null); var componentCount = model.GetEditableComponents().Count(op => op.Type == compType); Assert.That(componentCount, Is.EqualTo(1)); return(new RemoveOperationForComponentTypeInInstantiateNodeAction(model, compType)); }, () => { var model = GraphModel.FindInstantiateNodeModel(); Assert.That(model, Is.Not.Null); var componentCount = model.GetEditableComponents().Count(op => op.Type == compType); Assert.That(componentCount, Is.Zero); } ); }