public void InnerExceptionSet()
        {
            var innerException = new Exception();
            var exception = new ResolutionFailedException("msg", innerException);

            Assert.AreSame(innerException, exception.InnerException);
        }
        public void InnerExceptionSet()
        {
            var innerException = new Exception();
            var exception      = new ResolutionFailedException("msg", innerException);

            Assert.Same(innerException, exception.InnerException);
        }
        public void IsSerializable()
        {
            var exception = new ResolutionFailedException();

            try
            {
                using (var stream = new MemoryStream())
                {
                    var formatter = new BinaryFormatter();
                    formatter.Serialize(stream, exception);

                    stream.Position = 0;

                    exception = (ResolutionFailedException)formatter.Deserialize(stream);
                }
            }
            catch (Exception)
            {
                Assert.Fail("Type must be serializable.");
            }

            Assert.IsNotNull(exception, "Type could not be deserialized.");
        }
        public void HasMessage()
        {
            var exception = new ResolutionFailedException("msg");

            Assert.AreEqual("msg", exception.Message);
        }
        public void IsTypeOfException()
        {
            var exception = new ResolutionFailedException();

            Assert.IsAssignableFrom <Exception>(exception);
        }
        public void HasMessage()
        {
            var exception = new ResolutionFailedException("msg");

            Assert.Equal("msg", exception.Message);
        }