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 2009/11/17 18:29:15 UTC
svn commit: r881390 -
/incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestOrdValues.cs
Author: aroush
Date: Tue Nov 17 17:29:14 2009
New Revision: 881390
URL: http://svn.apache.org/viewvc?rev=881390&view=rev
Log:
Fixed NUnit test-cases for: TestOrdValues
Modified:
incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestOrdValues.cs
Modified: incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestOrdValues.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Search/Function/TestOrdValues.cs?rev=881390&r1=881389&r2=881390&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestOrdValues.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Search/Function/TestOrdValues.cs Tue Nov 17 17:29:14 2009
@@ -157,7 +157,8 @@
}
/// <summary>Test caching for ReverseOrdFieldSource </summary>
- public virtual void tesCachingReverseOrd()
+ [Test]
+ public virtual void TesCachingReverseOrd()
{
DoTestCaching(ID_FIELD, false);
}
@@ -271,7 +272,7 @@
try
{
Log("compare (should differ): " + innerArray + " to " + q2.valSrc_ForNUnit.GetValues(reader).GetInnerArray());
- Assert.AreNotEqual(innerArray, q2.valSrc_ForNUnit.GetValues(reader).GetInnerArray(), "cached field values should not be reused if reader as changed!");
+ Assert.AreNotSame(innerArray, q2.valSrc_ForNUnit.GetValues(reader).GetInnerArray(), "cached field values should not be reused if reader as changed!");
}
catch (System.NotSupportedException e)
{