﻿// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.

namespace Narvalo
{
    using System;

    using Xunit;

    public static class HashCodeHelpersFacts
    {
        [Fact]
        public static void Combine2_DoesNotThrow_WhenOverflowed()
            => HashCodeHelpers.Combine(Int32.MaxValue, 1);

        [Fact]
        public static void Combine3_DoesNotThrow_WhenOverflowed()
            => HashCodeHelpers.Combine(Int32.MaxValue, 1, 1);
    }
}

﻿// Copyright (c) Narvalo.Org. All rights reserved. See LICENSE.txt in the project root for license information.

namespace Narvalo
{
    using System;

    using Xunit;

    public static class HashCodeHelpersFacts
    {
        [Fact]
        public static void Combine2_DoesNotThrow_WhenMinOverflowed()
            => HashCodeHelpers.Combine(Int32.MinValue, 1);

        [Fact]
        public static void Combine2_DoesNotThrow_WhenMaxOverflowed()
            => HashCodeHelpers.Combine(Int32.MaxValue, 1);
        [Fact]
        public static void Combine3_DoesNotThrow_WhenMinOverflowed()
            => HashCodeHelpers.Combine(Int32.MinValue, 1, 1);

        [Fact]
        public static void Combine3_DoesNotThrow_WhenMaxOverflowed()
            => HashCodeHelpers.Combine(Int32.MaxValue, 1, 1);
    }
}

Add test for overflowed by min.
Add test for overflowed by min.
