public void TestsConstructorWithAMessageAndException()
 {
     Exception innerException = new Exception();
     InvalidResourceException exception = new InvalidResourceException("message", innerException);
     Assert.AreSame("message", exception.Message);
     Assert.AreSame(innerException, exception.InnerException);
 }
        public void TestsConstructorWithAMessageAndUri()
        {
            Uri uri = new Uri("http://www.microsoft.com");

            InvalidResourceException exception = new InvalidResourceException("message", uri);
            Assert.AreSame("message", exception.Message);
            Assert.AreSame(uri, exception.Uri);
        }
 public void TestsConstructorWithAMessageUriAndException()
 {
     Exception innerException = new Exception();
     Uri uri = new Uri("http://www.microsoft.com");
     InvalidResourceException exception = new InvalidResourceException("message", uri, innerException);
     Assert.AreSame("message", exception.Message);
     Assert.AreSame(uri, exception.Uri);
     Assert.AreSame(innerException, exception.InnerException);
 }
 public void TestsConstructorWithAMessage()
 {
     InvalidResourceException exception = new InvalidResourceException("message");
     Assert.AreSame("message", exception.Message);
 }