示例#1
0
        public void NormalizeTests(int expectedDenominator, params int[] denominators)
        {
            List <Weighting> set = denominators.Select(x => Weighting.Create(1, (ulong)x).Value).ToList();

            ICollection <Weighting> result = Weighting.Normalize(set);

            result.All(x => x.Denominator == (ulong)expectedDenominator).Should().BeTrue();
        }