public void SutIsException()
 {
     // Fixture setup
     // Exercise system
     var sut = new ProxyCreationException();
     // Verify outcome
     Assert.IsAssignableFrom<Exception>(sut);
     // Teardown
 }
Пример #2
0
        public void SutIsException()
        {
            // Fixture setup
            // Exercise system
            var sut = new ProxyCreationException();

            // Verify outcome
            Assert.IsAssignableFrom <Exception>(sut);
            // Teardown
        }
 public void InitializedWithDefaultConstructorHasMessage()
 {
     // Fixture setup
     var sut = new ProxyCreationException();
     // Exercise system
     var result = sut.Message;
     // Verify outcome
     Assert.False(string.IsNullOrEmpty(result));
     // Teardown
 }
Пример #4
0
        public void InitializedWithDefaultConstructorHasMessage()
        {
            // Fixture setup
            var sut = new ProxyCreationException();
            // Exercise system
            var result = sut.Message;

            // Verify outcome
            Assert.False(string.IsNullOrEmpty(result));
            // Teardown
        }
 public void InitializedWithMessageHasCorrectMessage()
 {
     // Fixture setup
     var expectedMessage = Guid.NewGuid().ToString();
     var sut = new ProxyCreationException(expectedMessage);
     // Exercise system
     var result = sut.Message;
     // Verify outcome
     Assert.Equal(expectedMessage, result);
     // Teardown
 }
Пример #6
0
        public void InitializedWithMessageHasCorrectMessage()
        {
            // Fixture setup
            var expectedMessage = Guid.NewGuid().ToString();
            var sut             = new ProxyCreationException(expectedMessage);
            // Exercise system
            var result = sut.Message;

            // Verify outcome
            Assert.Equal(expectedMessage, result);
            // Teardown
        }
 public void InitializedWithMessageAndInnerExceptionHasInnerException()
 {
     // Fixture setup
     var dummyMessage = "Anonymous text";
     var expectedException = new Exception();
     var sut = new ProxyCreationException(dummyMessage, expectedException);
     // Exercise system
     var result = sut.InnerException;
     // Verify outcome
     Assert.Equal(expectedException, result);
     // Teardown
 }
Пример #8
0
        public void InitializedWithMessageAndInnerExceptionHasInnerException()
        {
            // Fixture setup
            var dummyMessage      = "Anonymous text";
            var expectedException = new Exception();
            var sut = new ProxyCreationException(dummyMessage, expectedException);
            // Exercise system
            var result = sut.InnerException;

            // Verify outcome
            Assert.Equal(expectedException, result);
            // Teardown
        }