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/21 05:19:27 UTC

svn commit: r567930 - /incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs

Author: aroush
Date: Mon Aug 20 20:19:26 2007
New Revision: 567930

URL: http://svn.apache.org/viewvc?rev=567930&view=rev
Log:
Fix: LUCENENET-77 "Bug in TestBinaryDocument.cs"

Modified:
    incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs

Modified: incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/C%23/src/Test/Document/TestBinaryDocument.cs?rev=567930&r1=567929&r2=567930&view=diff
==============================================================================
--- incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs (original)
+++ incubator/lucene.net/trunk/C#/src/Test/Document/TestBinaryDocument.cs Mon Aug 20 20:19:26 2007
@@ -85,11 +85,11 @@
 			Assert.IsTrue(docFromReader != null);
 			
 			/** fetch the binary stored field and compare it's content with the original one */
-			System.String binaryFldStoredTest = docFromReader.GetBinaryValue("binaryStored").ToString();
+			System.String binaryFldStoredTest = System.Text.UTF8Encoding.UTF8.GetString(docFromReader.GetBinaryValue("binaryStored"));
 			Assert.IsTrue(binaryFldStoredTest.Equals(binaryValStored));
 			
 			/** fetch the binary compressed field and compare it's content with the original one */
-			System.String binaryFldCompressedTest = docFromReader.GetBinaryValue("binaryCompressed").ToString();
+			System.String binaryFldCompressedTest = System.Text.UTF8Encoding.UTF8.GetString(docFromReader.GetBinaryValue("binaryCompressed"));
 			Assert.IsTrue(binaryFldCompressedTest.Equals(binaryValCompressed));
 			
 			/** fetch the string field and compare it's content with the original one */