示例#1
0
 /// <summary>
 /// Creates a new expected exception metadata wrapper.
 /// </summary>
 /// <param name="expectedExceptionAttribute">Attribute value.</param>
 public ExpectedException(VS.ExpectedExceptionAttribute expectedExceptionAttribute)
 {
     _exp = expectedExceptionAttribute;
     if (_exp == null)
     {
         throw new ArgumentNullException("expectedExceptionAttribute");
     }
 }
示例#2
0
		public ExpectedException(ExpectedExceptionAttribute expectedExceptionAttribute)
		{
			exp = expectedExceptionAttribute;
			if (exp == null)
			{
				throw new ArgumentNullException("expectedExceptionAttribute");
			}
		}