Lucene.Net.Analysis.TestCharArraySet.TestClear C# (CSharp) Method

TestClear() private method

private TestClear ( ) : void
return void
		public virtual void  TestClear()
		{
			var set = new CharArraySet(10, true);
			for (int i = 0; i < TEST_STOP_WORDS.Length; i++) { set.Add(TEST_STOP_WORDS[i]); }
			Assert.AreEqual(TEST_STOP_WORDS.Length, set.Count, "Not all words added");

            Assert.Throws<NotSupportedException>(set.Clear, "remove is not supported");
			Assert.AreEqual(TEST_STOP_WORDS.Length, set.Count, "Not all words added");
		}