public void testIsList() { JDFIntegerRangeList goodRangeList = null; JDFIntegerRangeList badRangeList = null; try { goodRangeList = new JDFIntegerRangeList("0 4"); goodRangeList.Append(6, 6); goodRangeList.Append(7, 7); Assert.IsTrue(goodRangeList.isList(), "Bad isList " + goodRangeList.ToString()); badRangeList = new JDFIntegerRangeList(goodRangeList); badRangeList.Append(new JDFIntegerRange("8~9")); Assert.IsFalse(badRangeList.isList(), "Bad isList" + badRangeList.ToString()); } catch (FormatException) { Assert.Fail("FormatException"); } }