Esempio n. 1
0
        public void TestMethod3()
        {
            var Input    = new int[] { 3, 3, 6, 5, -2, 2, 5, 1, -9, 4 };
            var Expected = true;
            var Actual   = PartitionArrayIntoThreePartsWithEqualSum_1013.CanThreePartsEqualSum(Input);

            Assert.AreEqual(Expected, Actual);
        }
Esempio n. 2
0
        public void TestMethod4()
        {
            var Input    = new int[] { 18, 12, -18, 18, -19, -1, 10, 10 };
            var Expected = true;
            var Actual   = PartitionArrayIntoThreePartsWithEqualSum_1013.CanThreePartsEqualSum(Input);

            Assert.AreEqual(Expected, Actual);
        }
Esempio n. 3
0
        public void TestMethod2()
        {
            var Input    = new int[] { 0, 2, 1, -6, 6, 7, 9, -1, 2, 0, 1 };
            var Expected = false;
            var Actual   = PartitionArrayIntoThreePartsWithEqualSum_1013.CanThreePartsEqualSum(Input);

            Assert.AreEqual(Expected, Actual);
        }