Beispiel #1
0
        public void ExceptionPropertyShouldBeExceptionParemter()
        {
            InvalidOperationException ex = new InvalidOperationException("This is a test message.");
            IdentErrorEventArgs       e  = new IdentErrorEventArgs(ex);

            Assert.AreEqual(ex, e.Exception);
        }
Beispiel #2
0
        public void MessagePropertyShouldBeMessageParameter()
        {
            string message        = "This is a test message";
            IdentErrorEventArgs e = new IdentErrorEventArgs(message);

            Assert.AreEqual(message, e.Message);
        }
Beispiel #3
0
        public void MessagePropertyShouldBeExceptionMessage()
        {
            InvalidOperationException ex = new InvalidOperationException("This is a test message.");
            IdentErrorEventArgs       e  = new IdentErrorEventArgs(ex);

            Assert.AreEqual(ex.Message, e.Message);
        }
Beispiel #4
0
        public void MessagePropertyShouldBeMessageParameterWithException()
        {
            string message = "This should be the message property.";
            InvalidOperationException ex = new InvalidOperationException("This is a test message.");
            IdentErrorEventArgs       e  = new IdentErrorEventArgs(message, ex);

            Assert.AreEqual(message, e.Message);
        }
Beispiel #5
0
 public void ConstructorShouldAcceptNonNullException()
 {
     IdentErrorEventArgs e = new IdentErrorEventArgs(new InvalidOperationException());
 }
Beispiel #6
0
 public void ConstructorShouldAcceptNonNullParameters()
 {
     string message = "This is a test message";
     InvalidOperationException ex = new InvalidOperationException("This is a test message.");
     IdentErrorEventArgs       e  = new IdentErrorEventArgs(message, ex);
 }
Beispiel #7
0
 public void ConstructorShouldAcceptNonNullMessage()
 {
     IdentErrorEventArgs e = new IdentErrorEventArgs("Test message");
 }
Beispiel #8
0
 public void ConstructorShouldAcceptAllNulls()
 {
     IdentErrorEventArgs e = new IdentErrorEventArgs(null, null);
 }
Beispiel #9
0
 public void ConstructorShouldAcceptNullException()
 {
     Exception           ex = null;
     IdentErrorEventArgs e  = new IdentErrorEventArgs(ex);
 }
Beispiel #10
0
 public void ConstructorShouldAcceptNullMessage()
 {
     string message        = null;
     IdentErrorEventArgs e = new IdentErrorEventArgs(message);
 }
Beispiel #11
0
        public void IsEventArgs()
        {
            IdentErrorEventArgs e = new IdentErrorEventArgs("Test message.");

            Assert.IsInstanceOfType(e, typeof(EventArgs));
        }