public void Create_Instance_With_Type()
 {
     var exception = new ServiceLocatorResolutionException(typeof(string));
     Assert.Equal(exception.ServiceType, typeof(string));
     Assert.Equal(exception.Message, "Could not resolve serviceType 'System.String'");
     Assert.Throws<ServiceLocatorResolutionException>(() => { throw exception; });
 }
        public void Create_Instance_With_Type()
        {
            var exception = new ServiceLocatorResolutionException(typeof(string));

            Assert.AreEqual(exception.ServiceType, typeof(string));
            Assert.AreEqual(exception.Message, "Could not resolve serviceType 'System.String'");
            throw exception;
        }
        public void Create_Instance_With_Type_And_InnerException()
        {
            var operationException = new InvalidOperationException();
            var exception          = new ServiceLocatorResolutionException(typeof(string), operationException);

            Assert.AreEqual(exception.ServiceType, typeof(string));
            Assert.AreEqual(exception.InnerException, operationException);
            Assert.AreEqual(exception.Message, "Could not resolve serviceType 'System.String'");
            throw exception;
        }