예제 #1
0
        /// <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();
 }
예제 #3
0
        /// <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);
        }