/// <summary> /// Removes an annotation. /// </summary> /// <param name="annotation">The annotation to remove.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="annotation"/> is null.</exception> /// <seealso cref="Annotations"/> public void RemoveAnnotation(Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); annotations.Remove(annotation); }
void ITestModelBuilder.AddAnnotation(Annotation annotation) { throw new NotSupportedException(); }
/// <summary> /// Adds an annotation. /// </summary> /// <param name="annotation">The annotation to add.</param> /// <exception cref="ArgumentNullException">Thrown if <paramref name="annotation"/> is null.</exception> /// <seealso cref="Annotations"/> public void AddAnnotation(Annotation annotation) { if (annotation == null) throw new ArgumentNullException("annotation"); annotations.Add(annotation); }