コード例 #1
0
 public void DoubleArgConstructorSetsMessageAndInner()
 {
     var testMessage = "This is a test message";
     var inner = new Exception("Inner");
     var error = new CruiseControlException(testMessage, inner);
     Assert.AreEqual(testMessage, error.Message);
     Assert.AreSame(inner, error.InnerException);
 }
コード例 #2
0
 public void SerialisationWorksCorrectly()
 {
     var testMessage = "This is a test message";
     var error = new CruiseControlException(testMessage);
     error.RunSerialisationTest();
 }
コード例 #3
0
 public void SingleArgConstructorSetsMessage()
 {
     var testMessage = "This is a test message";
     var error = new CruiseControlException(testMessage);
     Assert.AreEqual(testMessage, error.Message);
 }