CellsAutomate.Mutator.Mutations.DeleteCommandMutation.AssertValid C# (CSharp) Method

AssertValid() private method

private AssertValid ( int index ) : void
index int
return void
        private void AssertValid(int index)
        {
            var comToDel = _commands[index];
            if (comToDel is ICommandDeclaration)
            {
                AssertDeclarationCommand(index);
            }
            if (comToDel is ICommandWithArgument)
            {
                AssertCommandWithArgument(index);
            }
            if (comToDel is ICommandSetter)
            {
                AssertCommandSetter(index);
            }
            if (comToDel is ICommandWithConstruction)
            {
                AssertCommandWithConstruction(index);
            }
        }