Ejemplo n.º 1
0
        public void Example3()
        {
            var xmas = new XMAS(5);

            xmas.AddRange(ExampleNumbers2);
            Assert.AreEqual(new[] { 15, 25, 47, 40 }, xmas.FindContiguousSum(127));
            Assert.AreEqual(62, xmas.FindWeakness(127));
        }
Ejemplo n.º 2
0
        public void Example2()
        {
            var xmas = new XMAS(5);

            Assert.AreEqual(127, xmas[xmas.AddRange(ExampleNumbers2).First()]);
        }