Пример #1
0
        public void SubSetSum_Recursive_NotExisting_Test1()
        {
            SubSetSum ss     = new SubSetSum();
            var       result = ss.IsSubsetSumRecursive(new int[] { 2, 4 }, 3);

            result.Should().BeFalse("Incorrect result for { 2, 4 }, 3");
        }
Пример #2
0
        public void SubSetSum_Recursive_Existing_Test1()
        {
            SubSetSum ss     = new SubSetSum();
            var       result = ss.IsSubsetSumRecursive(new int[] { 1, 2, 3 }, 4);

            result.Should().BeTrue("Incorrect result for { 1, 2, 3 }, 4");
        }