コード例 #1
0
ファイル: TestModel.cs プロジェクト: dougrathbone/mbunit-v3
        /// <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);
        }
コード例 #2
0
 void ITestModelBuilder.AddAnnotation(Annotation annotation)
 {
     throw new NotSupportedException();
 }
コード例 #3
0
ファイル: TestModel.cs プロジェクト: dougrathbone/mbunit-v3
        /// <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);
        }