namespace System
{
///
/// A utility type that is used to ensure that methods, constructors,
/// properties and the like throw an
/// exception when they receive a null argument.
///
/// The type of the first argument.
public abstract class ArgumentNullExceptionTests
: ArgumentExceptionTests
where T1 : class
{
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T1 InvalidArg1 { get { return null; } }
}
///
/// A utility type that is used to ensure that methods, constructors,
/// properties and the like throw an
/// exception when they receive a null argument.
///
/// The type of the first argument.
/// The type of the second argument.
public abstract class ArgumentNullExceptionTests
: ArgumentExceptionTests
where T1 : class
where T2 : class
{
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T1 InvalidArg1 { get { return null; } }
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T2 InvalidArg2 { get { return null; } }
}
///
/// A utility type that is used to ensure that methods, constructors,
/// properties and the like throw an
/// exception when they receive a null argument.
///
/// The type of the first argument.
/// The type of the second argument.
/// The type of the third argument.
public abstract class ArgumentNullExceptionTests
: ArgumentExceptionTests
where T1 : class
where T2 : class
where T3 : class
{
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T1 InvalidArg1 { get { return null; } }
///
/// An invalid value to the second argument that will cause an exception
/// to be thrown.
///
protected override T2 InvalidArg2 { get { return null; } }
///
/// An invalid value to the third argument that will cause an exception
/// to be thrown.
///
protected override T3 InvalidArg3 { get { return null; } }
}
///
/// A utility type that is used to ensure that methods, constructors,
/// properties and the like throw an
/// exception when they receive a null argument.
///
/// The type of the first argument.
/// The type of the second argument.
/// The type of the third argument.
/// The type of the fourth argument.
public abstract class ArgumentNullExceptionTests
: ArgumentExceptionTests
where T1 : class
where T2 : class
where T3 : class
where T4 : class
{
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T1 InvalidArg1 { get { return null; } }
///
/// An invalid value to the second argument that will cause an exception
/// to be thrown.
///
protected override T2 InvalidArg2 { get { return null; } }
///
/// An invalid value to the third argument that will cause an exception
/// to be thrown.
///
protected override T3 InvalidArg3 { get { return null; } }
///
/// An invalid value to the third argument that will cause an exception
/// to be thrown.
///
protected override T4 InvalidArg4 { get { return null; } }
}
///
/// A utility type that is used to ensure that methods, constructors,
/// properties and the like throw an
/// exception when they receive a null argument.
///
/// The type of the first argument.
/// The type of the second argument.
/// The type of the third argument.
/// The type of the fourth argument.
/// The type of the fifth argument.
public abstract class ArgumentNullExceptionTests
: ArgumentExceptionTests
where T1 : class
where T2 : class
where T3 : class
where T4 : class
where T5 : class
{
///
/// An invalid value to the first argument that will cause an exception
/// to be thrown.
///
protected override T1 InvalidArg1 { get { return null; } }
///
/// An invalid value to the second argument that will cause an exception
/// to be thrown.
///
protected override T2 InvalidArg2 { get { return null; } }
///
/// An invalid value to the third argument that will cause an exception
/// to be thrown.
///
protected override T3 InvalidArg3 { get { return null; } }
///
/// An invalid value to the fourth argument that will cause an exception
/// to be thrown.
///
protected override T4 InvalidArg4 { get { return null; } }
///
/// An invalid value to the fifth argument that will cause an exception
/// to be thrown.
///
protected override T5 InvalidArg5 { get { return null; } }
}
}