lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mhern...@apache.org
Subject [Lucene.Net] svn commit: r1157250 [4/4] - in /incubator/lucene.net/branches/Lucene.Net_4e: ./ build/scripts/ packages/ packages/PortableLibrary/ src/Lucene.Net.TestFramework/ src/Lucene.Net.TestFramework/Extensions/NUnit/ src/Lucene.Net.TestFramework/Properties/ sr...
Date Fri, 12 Aug 2011 21:00:57 GMT
Modified: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/IAttribute.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/IAttribute.cs?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/IAttribute.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/IAttribute.cs Fri Aug
12 21:00:55 2011
@@ -19,8 +19,11 @@
 // </copyright>
 // -----------------------------------------------------------------------
 
+
 namespace Lucene.Net.Util
 {
+    using System.Diagnostics.CodeAnalysis;
+
     /// <summary> 
     /// The contract interface for attributes.  This interface is used as 
     /// a way to query types that extend or implement an interface that 
@@ -45,6 +48,8 @@ namespace Lucene.Net.Util
     ///         </para>
     ///     </note>
     /// </remarks>
+    [SuppressMessage("Microsoft.Design", "CA1040:AvoidEmptyInterfaces",
+        Justification = "This interface services as a way to query all interfaces that inherit
this one.")]
     public interface IAttribute
     {
     }

Modified: incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/RamUsageEstimator.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/RamUsageEstimator.cs?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/RamUsageEstimator.cs (original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net/Util/RamUsageEstimator.cs Fri
Aug 12 21:00:55 2011
@@ -66,5 +66,18 @@ namespace Lucene.Net.Util
         /// The number of bytes for a char.
         /// </summary>
         public const int NumBytesChar = 2;
+
+        private string temp = string.Empty;
+
+        /// <summary>
+        /// Returns a <see cref="System.String"/> that represents this instance.
+        /// </summary>
+        /// <returns>
+        /// A <see cref="System.String"/> that represents this instance.
+        /// </returns>
+        public override string ToString()
+        {
+            return this.temp;
+        }
     }
 }
\ No newline at end of file

Copied: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/ParallelizeableAttribute.cs
(from r1156935, incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Extensions/NUnit/ParallelizeableAttribute.cs)
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/ParallelizeableAttribute.cs?p2=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/ParallelizeableAttribute.cs&p1=incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Extensions/NUnit/ParallelizeableAttribute.cs&r1=1156935&r2=1157250&rev=1157250&view=diff
==============================================================================
    (empty)

Copied: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/TestScope.cs
(from r1156935, incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Extensions/NUnit/TestScope.cs)
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/TestScope.cs?p2=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Extensions/NUnit/TestScope.cs&p1=incubator/lucene.net/branches/Lucene.Net_4e/src/Lucene.Net.TestFramework/Extensions/NUnit/TestScope.cs&r1=1156935&r2=1157250&rev=1157250&view=diff
==============================================================================
    (empty)

Copied: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Lucene.Net.Test.Extensions.csproj
(from r1156935, incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Lucene.Net.TestFramework.Test.csproj)
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Lucene.Net.Test.Extensions.csproj?p2=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Lucene.Net.Test.Extensions.csproj&p1=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Lucene.Net.TestFramework.Test.csproj&r1=1156935&r2=1157250&rev=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Lucene.Net.TestFramework.Test.csproj
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Lucene.Net.Test.Extensions.csproj
Fri Aug 12 21:00:55 2011
@@ -5,13 +5,14 @@
     <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
     <ProductVersion>8.0.30703</ProductVersion>
     <SchemaVersion>2.0</SchemaVersion>
-    <ProjectGuid>{26D22898-1DDE-461E-A191-B33AFAC3343A}</ProjectGuid>
+    <ProjectGuid>{5307EF45-1332-4C15-8871-6AE67CA9B16C}</ProjectGuid>
     <OutputType>Library</OutputType>
     <AppDesignerFolder>Properties</AppDesignerFolder>
-    <RootNamespace>Lucene.Net.TestFramework.Test</RootNamespace>
-    <AssemblyName>Lucene.Net.TestFramework.Test</AssemblyName>
-    <TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
+    <RootNamespace>Lucene.Net</RootNamespace>
+    <AssemblyName>Lucene.Net.Test.Extensions</AssemblyName>
+    <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
     <FileAlignment>512</FileAlignment>
+    <TargetFrameworkProfile />
   </PropertyGroup>
   <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
     <DebugSymbols>true</DebugSymbols>
@@ -36,6 +37,8 @@
     <Reference Include="System.Xml" />
   </ItemGroup>
   <ItemGroup>
+    <Compile Include="Extensions\NUnit\ParallelizeableAttribute.cs" />
+    <Compile Include="Extensions\NUnit\TestScope.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

Copied: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Properties/AssemblyInfo.cs
(from r1156935, incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Properties/AssemblyInfo.cs)
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Properties/AssemblyInfo.cs?p2=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Properties/AssemblyInfo.cs&p1=incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Properties/AssemblyInfo.cs&r1=1156935&r2=1157250&rev=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.TestFramework.Test/Properties/AssemblyInfo.cs
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test.Extensions/Properties/AssemblyInfo.cs
Fri Aug 12 21:00:55 2011
@@ -5,11 +5,11 @@ using System.Runtime.InteropServices;
 // General Information about an assembly is controlled through the following 
 // set of attributes. Change these attribute values to modify the information
 // associated with an assembly.
-[assembly: AssemblyTitle("Lucene.Net.TestFramework.Tests")]
+[assembly: AssemblyTitle("Lucene.Net.Test.Extensions")]
 [assembly: AssemblyDescription("")]
 [assembly: AssemblyConfiguration("")]
 [assembly: AssemblyCompany("Microsoft")]
-[assembly: AssemblyProduct("Lucene.Net.TestFramework.Tests")]
+[assembly: AssemblyProduct("Lucene.Net.Test.Extensions")]
 [assembly: AssemblyCopyright("Copyright © Microsoft 2011")]
 [assembly: AssemblyTrademark("")]
 [assembly: AssemblyCulture("")]
@@ -20,7 +20,7 @@ using System.Runtime.InteropServices;
 [assembly: ComVisible(false)]
 
 // The following GUID is for the ID of the typelib if this project is exposed to COM
-[assembly: Guid("54e47a33-3ff2-448d-91f7-d215694c9629")]
+[assembly: Guid("554318f7-41f8-4118-9957-b03dee7e89c3")]
 
 // Version information for an assembly consists of the following four values:
 //

Modified: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/CharTermAttributeTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/CharTermAttributeTest.cs?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/CharTermAttributeTest.cs
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/CharTermAttributeTest.cs
Fri Aug 12 21:00:55 2011
@@ -201,7 +201,7 @@ namespace Lucene.Net.Analysis.TokenAttri
             for (int i = 0; i < 2000; i++)
             {
                 attribute.ResizeBuffer(i);
-                Assert.IsTrue(i <= attribute.Buffer.Length, "i is {0} and buffer length
is {1}", i, attribute.Buffer.Length);
+                Assert.IsTrue(i <= ((char[])attribute.Buffer).Length, "i is {0} and buffer
length is {1}", i, ((char[])attribute.Buffer).Length);
                 Assert.AreEqual("hello", attribute.ToString());
             }
         }

Modified: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/PayloadAttributeTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/PayloadAttributeTest.cs?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/PayloadAttributeTest.cs
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Analysis/TokenAttributes/PayloadAttributeTest.cs
Fri Aug 12 21:00:55 2011
@@ -67,7 +67,7 @@ namespace Lucene.Net.Analysis.TokenAttri
 
           
             Assert.IsNotNull(clone.Payload);
-            Assert.AreEqual(attribute.Payload, clone.Payload);
+            Assert.IsTrue(attribute.Payload.Equals(clone.Payload));
         }
 
         [Test]

Modified: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Index/PayloadTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Index/PayloadTest.cs?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Index/PayloadTest.cs
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Index/PayloadTest.cs
Fri Aug 12 21:00:55 2011
@@ -76,11 +76,11 @@ namespace Lucene.Net.Index
         }
 
         [Test]
-        public void CopyTo_ThrowsIndexOutOfRangeException()
+        public void CopyTo_ThrowsArgumentOutOfRangeException()
         {
             var payload = new Payload(new byte[20]);
 
-            Assert.Throws<IndexOutOfRangeException>(() => {
+            Assert.Throws<ArgumentOutOfRangeException>(() => {
                 payload.CopyTo(new byte[4]);
             });
         }

Modified: incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Lucene.Net.Test.csproj
URL: http://svn.apache.org/viewvc/incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Lucene.Net.Test.csproj?rev=1157250&r1=1157249&r2=1157250&view=diff
==============================================================================
--- incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Lucene.Net.Test.csproj
(original)
+++ incubator/lucene.net/branches/Lucene.Net_4e/test/Lucene.Net.Test/Lucene.Net.Test.csproj
Fri Aug 12 21:00:55 2011
@@ -82,13 +82,17 @@
   </ItemGroup>
   <ItemGroup>
     <ProjectReference Include="..\..\src\Lucene.Net.TestFramework\Lucene.Net.TestFramework.csproj">
-      <Project>{756B5043-39EC-4C04-AC1F-AA959267DDC1}</Project>
+      <Project>{F8518746-08D2-44A0-AF67-D6F0FA74C5CA}</Project>
       <Name>Lucene.Net.TestFramework</Name>
     </ProjectReference>
     <ProjectReference Include="..\..\src\Lucene.Net\Lucene.Net.csproj">
       <Project>{07A5FF70-1EFE-4B0B-B338-5CA56C3A2826}</Project>
       <Name>Lucene.Net</Name>
     </ProjectReference>
+    <ProjectReference Include="..\Lucene.Net.Test.Extensions\Lucene.Net.Test.Extensions.csproj">
+      <Project>{5307EF45-1332-4C15-8871-6AE67CA9B16C}</Project>
+      <Name>Lucene.Net.Test.Extensions</Name>
+    </ProjectReference>
   </ItemGroup>
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
   <Import Condition="Exists('..\..\packages\StyleCop.4.5\StyleCop.targets')" Project="..\..\packages\StyleCop.4.5\StyleCop.targets"
/>



Mime
View raw message