コード例 #1
0
 public void TestsConstructorWithAMessageAndException()
 {
     Exception innerException = new Exception();
     ResourceNotFoundException exception = new ResourceNotFoundException("message", innerException);
     Assert.AreSame("message", exception.Message);
     Assert.AreSame(innerException, exception.InnerException);
 }
コード例 #2
0
        public void TestsConstructorWithAMessageAndUri()
        {
            Uri uri = new Uri("http://www.microsoft.com");

            ResourceNotFoundException exception = new ResourceNotFoundException("message", uri);
            Assert.AreSame("message", exception.Message);
            Assert.AreSame(uri, exception.Uri);
        }
コード例 #3
0
 public void TestsConstructorWithAMessage()
 {
     ResourceNotFoundException exception = new ResourceNotFoundException("message");
     Assert.AreSame("message", exception.Message);
 }