public void TestInitializationWithExceptionMessage()
        {
            string message = "Message";
            ServiceMissingException exception = new ServiceMissingException(message);

            Assert.AreEqual(message, exception.Message);
        }
        public void TestInitializationWithInnerException()
        {
            Exception innerException          = new Exception();
            ServiceMissingException exception = new ServiceMissingException("", innerException);

            Assert.AreEqual(innerException, exception.InnerException);
        }
        public void TestInitializationWithServiceType()
        {
            Type serviceType = typeof(Foo);
            ServiceMissingException exception = new ServiceMissingException(serviceType);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
        }
        public void TestInitializationWithServiceType()
        {
            Type serviceType = typeof (Foo);
            ServiceMissingException exception = new ServiceMissingException(serviceType);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
        }
        public void TestInitializationWithInnerException()
        {
            Exception innerException = new Exception();
            ServiceMissingException exception = new ServiceMissingException("", innerException);

            Assert.AreEqual(innerException, exception.InnerException);
        }
        public void TestInitializationWithExceptionMessage()
        {
            string message = "Message";
            ServiceMissingException exception = new ServiceMissingException(message);

            Assert.AreEqual(message, exception.Message);
        }
        public void TestInitializationWithServiceTypeAndComponent()
        {
            Type serviceType = typeof(Foo);
            Foo2 component   = new Foo2();
            ServiceMissingException exception = new ServiceMissingException(serviceType, component);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
            Assert.IsTrue(exception.Message.Contains(component.ToString()));
        }
        public void TestInitializationWithServiceTypeAndComponentAndInnerException()
        {
            Type      serviceType             = typeof(Foo);
            Foo2      component               = new Foo2();
            Exception innerException          = new Exception();
            ServiceMissingException exception = new ServiceMissingException(serviceType, component, innerException);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
            Assert.IsTrue(exception.Message.Contains(component.ToString()));
            Assert.AreEqual(innerException, exception.InnerException);
        }
        public void TestInitialization()
        {
            ServiceMissingException exception = new ServiceMissingException();

            Assert.IsNotNull(exception as Exception);
        }
        public void TestInitializationWithServiceTypeAndComponentAndInnerException()
        {
            Type serviceType = typeof (Foo);
            Foo2 component = new Foo2();
            Exception innerException = new Exception();
            ServiceMissingException exception = new ServiceMissingException(serviceType, component, innerException);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
            Assert.IsTrue(exception.Message.Contains(component.ToString()));
            Assert.AreEqual(innerException, exception.InnerException);
        }
        public void TestInitializationWithServiceTypeAndComponent()
        {
            Type serviceType = typeof (Foo);
            Foo2 component = new Foo2();
            ServiceMissingException exception = new ServiceMissingException(serviceType, component);

            Assert.IsTrue(exception.Message.Contains(serviceType.ToString()));
            Assert.IsTrue(exception.Message.Contains(component.ToString()));
        }
        public void TestInitialization()
        {
            ServiceMissingException exception = new ServiceMissingException();

            Assert.IsNotNull(exception as Exception);
        }