コード例 #1
0
ファイル: Euler_20_tests.cs プロジェクト: monkieboy/Euler
        public void Should_calculate_the_composite_integer_multiples_of_10_to_3628800()
        {
            result = euler20Calculator.GetMultipleCalculation(10);

            result.Should().Be(3628800);
        }
コード例 #2
0
        public async Task ShiftNegativeToUnsigned_treats_negative_1_as_the_max_unsigned_value()
        {
            var bigInteger = new BigInteger(-1)
                .ShiftNegativeToUnsigned();

            bigInteger
                .Should()
                .Be(SqlGuidPartitionBuilder.MaxUnsigned128BitBigInt);
        }