You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ar...@apache.org on 2007/08/22 03:20:29 UTC
svn commit: r568356 - in /incubator/lucene.net/trunk/C#/src/Test/Search:
TestComplexExplanations.cs TestExplanations.cs
Author: aroush
Date: Tue Aug 21 18:20:29 2007
New Revision: 568356
URL: http://svn.apache.org/viewvc?rev=568356&view=rev
Log:
Fix: LUCENENET-83 "NUnite test for TestComplexExplanations"
Modified:
incubator/lucene.net/trunk/C#/src/Test/Search/TestComplexExplanations.cs
incubator/lucene.net/trunk/C#/src/Test/Search/TestExplanations.cs
Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestComplexExplanations.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestComplexExplanations.cs?rev=568356&r1=568355&r2=568356&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestComplexExplanations.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestComplexExplanations.cs Tue Aug 21 18:20:29 2007
@@ -73,6 +73,8 @@
[SetUp]
public override void SetUp()
{
+ if (searcher == null)
+ base.SetUp();
searcher.SetSimilarity(new AnonymousClassDefaultSimilarity(this));
}
Modified: incubator/lucene.net/trunk/C#/src/Test/Search/TestExplanations.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/TestExplanations.cs?rev=568356&r1=568355&r2=568356&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/TestExplanations.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/TestExplanations.cs Tue Aug 21 18:20:29 2007
@@ -56,7 +56,11 @@
[TearDown]
public virtual void TearDown()
{
- searcher.Close();
+ if (searcher != null)
+ {
+ searcher.Close();
+ searcher = null;
+ }
}
[SetUp]