示例#1
0
        public void SimplifyTests(int top, int bottom, int expectedTop, int expectedBottom)
        {
            Weighting weighting = Weighting.Create((ulong)top, (ulong)bottom).Value;

            Weighting result = weighting.Simplify();

            result.Numerator.Should().Be((ulong)expectedTop);
            result.Denominator.Should().Be((ulong)expectedBottom);
        }