public void Constructor_WithErrorCode()
        {
            var exception = new HttpUrlReservationNotFoundException(5);

            exception.NativeErrorCode.Should().Be(5);
            exception.Message.Should().Be("Accès refusé");
        }
        public void Constructor_WithWin32ErrorCodeAndMessage()
        {
            var exception = new HttpUrlReservationNotFoundException((Win32Error)5, "The message");

            exception.NativeErrorCode.Should().Be(5);
            exception.Message.Should().Be("The message");
        }
        public void Constructor_WithMessage()
        {
            var lastErrorCode = Marshal.GetLastWin32Error();
            var exception     = new HttpUrlReservationNotFoundException("The message");

            exception.NativeErrorCode.Should().Be(lastErrorCode);
            exception.Message.Should().Be("The message");
        }
        public void Serialization()
        {
            var exception = new HttpUrlReservationNotFoundException((Win32Error)5, "The message");

            exception.Should().BeBinarySerializable();
        }