/// <summary> /// Adds a new verification object. /// </summary> /// <param name="value">the verification object to be added (must not be null)</param> /// <returns></returns> public int Add(IResultInterface value) { return List.Add(value); }
/// <summary> /// Adds a new verification object. Should the verification object be null, /// nothing happens. /// </summary> /// <param name="value">the verification object to be added (can be null)</param> /// <returns></returns> public int AddAndIgnoreNullValue(IResultInterface value) { int ReturnValue = -1; if (value != null) { ReturnValue = List.Add(value); } return ReturnValue; }
/// <summary> /// insert a new value at the given position /// </summary> /// <param name="index">position to insert after</param> /// <param name="value">value to add</param> public void Insert(int index, IResultInterface value) { List.Insert(index, value); }
/// <summary> /// remove a result from the list /// </summary> /// <param name="value">value to delete</param> public void Remove(IResultInterface value) { List.Remove(value); }
/// <summary> /// find the index of the given value /// </summary> /// <param name="value">value to look for</param> /// <returns>index of the value</returns> public int IndexOf(IResultInterface value) { return List.IndexOf(value); }
/// <summary> /// assign a specified verification result in the list /// </summary> /// <param name="Index">index to change the verification result</param> /// <param name="Value">the new value</param> public void SetVerificationResult(int Index, IResultInterface Value) { List[Index] = Value; }
/// <summary> /// check if the Verification list contains this value already /// </summary> /// <param name="value">check list for this value</param> /// <returns>true if the value is already there</returns> public bool Contains(IResultInterface value) { return List.Contains(value); }
/// <summary> /// Adds a new verification object. Should the verification object be null, /// nothing happens. /// </summary> /// <param name="value">the verification object to be added (can be null)</param> /// <returns></returns> public int AddAndIgnoreNullValue(IResultInterface value) { if (value != null) { FList.Add(value); return Count; } return -1; }
/// <summary> /// Adds a new verification object. /// </summary> /// <param name="value">the verification object to be added (must not be null)</param> public int Add(IResultInterface value) { FList.Add(value); return Count; }