Пример #1
0
        //[TestCase("2852213850458175921094913949697", "51539607551", "55340232221128654847")]
        public void Should_get_prime_multipliers_for_Int128(string pqS, string expectedPs, string expectedQs)
        {
            Int128 pq = Int128.Parse(pqS);
            Int128 expectedP = Int128.Parse(expectedPs);
            Int128 expectedQ = Int128.Parse(expectedQs);
            Int128 p, q;

            pq.GetPrimeMultipliers(out p, out q);

            p.Should().Be(expectedP);
            q.Should().Be(expectedQ);
        }