Ejemplo n.º 1
0
        public void AddressOutOfRangeMessage()
        {
            var t_Exception = new AddressOutOfRange("Foobar");

            t_Exception.Message
            .Should()
            .Be("Foobar");
        }
Ejemplo n.º 2
0
        public void AddressOutOfRangeMessageInnerException()
        {
            var t_Exception = new AddressOutOfRange("Foobar", new Exception("Foobar2"));

            t_Exception.Message
            .Should()
            .Be("Foobar");

            t_Exception.InnerException
            .Should()
            .NotBeNull();

            t_Exception.InnerException.Message
            .Should()
            .Be("Foobar2");
        }