/// <summary> /// Adds a <see cref="FormatterData"/> to the end of the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> to be added to the end of the collection.</param> /// <returns>The position into which the new element was inserted.</returns> public int Add(FormatterData item) { return(base.List.Add(item)); }
/// <summary> /// Inserts a <see cref="FormatterData"/> into the collection at the specified index. /// </summary> /// <param name="index">The zero-based index at which <paramref name="item"/> should be inserted.</param> /// <param name="item">The <see cref="FormatterData"/> to insert.</param> public void Insert(int index, FormatterData item) { base.List.Insert(index, item); }
/// <summary> /// Removes a member from the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> to remove from the collection.</param> public void Remove(FormatterData item) { base.List.Remove(item); }
/// <summary> /// Determines whether a <see cref="FormatterData"/> is in the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> to locate in the collection.</param> /// <returns> /// <see langword="true" /> if <paramref name="item"/> is found in the /// collection; otherwise, <see langword="false" />. /// </returns> public bool Contains(FormatterData item) { return(base.List.Contains(item)); }
/// <summary> /// Retrieves the index of a specified <see cref="FormatterData"/> object in the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> object for which the index is returned.</param> /// <returns> /// The index of the specified <see cref="FormatterData"/>. If the <see cref="FormatterData"/> is not currently a member of the collection, it returns -1. /// </returns> public int IndexOf(FormatterData item) { return(base.List.IndexOf(item)); }
/// <summary> /// Adds a <see cref="FormatterData"/> to the end of the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> to be added to the end of the collection.</param> /// <returns>The position into which the new element was inserted.</returns> public int Add(FormatterData item) { return base.List.Add(item); }
/// <summary> /// Adds the elements of a <see cref="FormatterData"/> array to the end of the collection. /// </summary> /// <param name="items">The array of <see cref="FormatterData"/> elements to be added to the end of the collection.</param> public void AddRange(FormatterData[] items) { for (int i = 0; (i < items.Length); i = (i + 1)) { Add(items[i]); } }
/// <summary> /// Initializes a new instance of the <see cref="FormatterDataCollection"/> class /// with the specified array of <see cref="FormatterData"/> instances. /// </summary> public FormatterDataCollection(FormatterData[] value) { AddRange(value); }
/// <summary> /// Retrieves the index of a specified <see cref="FormatterData"/> object in the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> object for which the index is returned.</param> /// <returns> /// The index of the specified <see cref="FormatterData"/>. If the <see cref="FormatterData"/> is not currently a member of the collection, it returns -1. /// </returns> public int IndexOf(FormatterData item) { return base.List.IndexOf(item); }
/// <summary> /// Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. /// </summary> /// <param name="array">The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.</param> /// <param name="index">The zero-based index in <paramref name="array"/> at which copying begins.</param> public void CopyTo(FormatterData[] array, int index) { base.List.CopyTo(array, index); }
/// <summary> /// Determines whether a <see cref="FormatterData"/> is in the collection. /// </summary> /// <param name="item">The <see cref="FormatterData"/> to locate in the collection.</param> /// <returns> /// <see langword="true" /> if <paramref name="item"/> is found in the /// collection; otherwise, <see langword="false" />. /// </returns> public bool Contains(FormatterData item) { return base.List.Contains(item); }
/// <summary> /// Returns the output file or null if does not use a file. /// </summary> protected FileInfo GetOutput(FormatterData formatterData, NUnitTestData test) { if (formatterData.UseFile) { string filename = test.OutFile + formatterData.Extension; string absFilename = Path.Combine(test.ToDir, filename); return new FileInfo(absFilename); } return null; }