lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aro...@apache.org
Subject svn commit: r568356 - in /incubator/lucene.net/trunk/C#/src/Test/Search: TestComplexExplanations.cs TestExplanations.cs
Date Wed, 22 Aug 2007 01:20:29 GMT
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]



Mime
View raw message