public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new ExactTypeConstraint(typeof(ArgumentException)));
     expectedDescription  = "<System.ArgumentException>";
     stringRepresentation = "<throws <typeof System.ArgumentException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new InstanceOfTypeConstraint(typeof(ApplicationException)));
     expectedDescription  = "instance of <System.ApplicationException>";
     stringRepresentation = "<throws <instanceof System.ApplicationException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new InstanceOfTypeConstraint(typeof(TestDelegates.CustomException)));
     expectedDescription = "instance of <NUnit.TestUtilities.TestDelegates+CustomException>";
     stringRepresentation = "<throws <instanceof NUnit.TestUtilities.TestDelegates+CustomException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new ExactTypeConstraint(typeof(ArgumentException)));
     expectedDescription = "<System.ArgumentException>";
     stringRepresentation = "<throws <typeof System.ArgumentException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new InstanceOfTypeConstraint(typeof(TestDelegates.CustomException)));
     expectedDescription  = "instance of <NUnit.TestUtilities.TestDelegates+CustomException>";
     stringRepresentation = "<throws <instanceof NUnit.TestUtilities.TestDelegates+CustomException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new InstanceOfTypeConstraint(typeof(ApplicationException)));
     expectedDescription = "instance of <System.ApplicationException>";
     stringRepresentation = "<throws <instanceof System.ApplicationException>>";
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new AndConstraint(
             new ExactTypeConstraint(typeof(ArgumentException)),
             new PropertyConstraint("ParamName", new EqualConstraint("myParam"))));
     expectedDescription  = @"<System.ArgumentException> and property ParamName equal to ""myParam""";
     stringRepresentation = @"<throws <and <typeof System.ArgumentException> <property ParamName <equal ""myParam"">>>>";
 }
 public void SetUp()
 {
     Matcher = new ThrowsConstraint(
         new ExactTypeConstraint(typeof(ArgumentException)));
     Description = "<System.ArgumentException>";
     GoodValues  = new object[]
     {
         new TestDelegate(TestDelegates.ThrowsArgumentException)
     };
     BadValues = new object[]
     {
         new TestDelegate(TestDelegates.ThrowsApplicationException),
         new TestDelegate(TestDelegates.ThrowsNothing),
         new TestDelegate(TestDelegates.ThrowsSystemException)
     };
 }
 public void SetUp()
 {
     Matcher = new ThrowsConstraint(
         new AndConstraint(
             new ExactTypeConstraint(typeof(ArgumentException)),
             new PropertyConstraint("Message", new SubstringConstraint("myParam"))));
     Description = @"<System.ArgumentException> and property Message String containing ""myParam""";
     GoodValues  = new object[]
     {
         new TestDelegate(TestDelegates.ThrowsArgumentException)
     };
     BadValues = new object[]
     {
         new TestDelegate(TestDelegates.ThrowsApplicationException),
         new TestDelegate(TestDelegates.ThrowsNothing),
         new TestDelegate(TestDelegates.ThrowsSystemException)
     };
 }
 public void SetUp()
 {
     theConstraint = new ThrowsConstraint(
         new AndConstraint(
             new ExactTypeConstraint(typeof(ArgumentException)),
             new PropertyConstraint("ParamName", new EqualConstraint("myParam"))));
     expectedDescription = @"<System.ArgumentException> and property ParamName equal to ""myParam""";
     stringRepresentation = @"<throws <and <typeof System.ArgumentException> <property ParamName <equal ""myParam"">>>>";
 }