示例#1
0
        public void FindMaxLengthTest()
        {
            var s = new Solution();

            int[] nums;
            int   expected;

            nums     = new int[] { 0, 1 };
            expected = 2;
            Assert.Equal(expected, s.FindMaxLength(nums));

            nums     = new int[] { 0, 1, 0 };
            expected = 2;
            Assert.Equal(expected, s.FindMaxLength(nums));
        }