public void ChangeTest(int amount, int[] coins, int expected) { var subsetSum = new PartitionEqualsSubsetSum(); var result = subsetSum.Change(amount, coins); Assert.AreEqual(expected, result); }
public void CanPartition(int[] nums, bool expected) { var subsetSum = new PartitionEqualsSubsetSum(); var result = subsetSum.CanPartition(nums); Assert.AreEqual(expected, result); }