Hi Pasha, That is defiantly not happening in my case. Here is an output:
Setup() TestBarelyCloseEnough() TestExact() TestMulipleTerms() TestNotCloseEnough() TestOrderDoesntMatter() TestPhraseQueryInConjunctionScorer() TestPhraseQueryWithStopAnalyzer() TestSlop1() TestSlopScoring() TestWrappedPhrase() TearDown() Which version of NUnit are you using? I am using 2.2.8. Regards, -- George -----Original Message----- From: Pasha Bizhan [mailto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 2:07 PM To: java-dev@lucene.apache.org Subject: RE: Test failure question Hi, > testBarelyCloseEnough(), testExact(), testMulipleTerms(), etc? If so, > then the NUnit is not doing this. I tested by outputing to stdout. NUnit calls setUp before each test and calls tearDown after each test. Add Console.WriteLine and see the result. Let me show: ------------------ [TestFixture] public class TestPhraseQuery { [SetUp] protected void SetUp() { directory = new RAMDirectory(); IndexWriter writer = new IndexWriter(directory, new WhitespaceAnalyzer(), true); ... Console.WriteLine("set up"); } [TearDown] protected void TearDown() { searcher.Close(); directory.Close(); Console.WriteLine("tear down"); } [Test] public void TestNotCloseEnough() { query.SetSlop(2); ..... MockAssert.AreEqual(0, hits.Length()); Console.WriteLine("not close"); } ------------------ The output: --------------- set up barely tear down set up tear down ... ---------------- Pasha Bizhan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]