public void Map2()
        {
            var instance         = new Error("Failure");
            var errorMapper      = new InstanceExceptionMapper <Error>(instance, () => { return(false); });
            var returnedInstance = errorMapper.Map(new Exception());

            Assert.IsFalse(returnedInstance.HasValue);
        }
        public void Map()
        {
            var instance         = new Error("Failure");
            var errorMapper      = new InstanceExceptionMapper <Error>(instance);
            var returnedInstance = errorMapper.Map(new Exception());

            Assert.IsTrue(returnedInstance.HasValue);
            Assert.AreSame(instance, returnedInstance.Value);
        }