You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2020/06/17 19:01:04 UTC

[lucenenet] branch master updated (a7f7c40 -> 6dabe24)

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git.


    from a7f7c40  The description for websie link under the title Lucene 2.9.4.1 is wrong.
     new a54545d  PERFORMANCE: Boxing issue causing issue with some unit tests that were using AreEqual with bool. Added overloads of AreEqual that accept bool to cover the project systemically without changing tests. (#261, #295)
     new c6efbd3  build/build.ps1: Added Powershell version number check
     new 383917f  build/Dependencies.props: Removed unused MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5 property
     new 6dabe24  Added NuGet.config file

The 4 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 NuGet.config                                       |  6 ++++
 build/Dependencies.props                           |  2 --
 build/build.ps1                                    |  1 +
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/JavaCompatibility/LuceneTestCase.cs    | 10 ++++++
 7 files changed, 137 insertions(+), 2 deletions(-)
 create mode 100644 NuGet.config


[lucenenet] 04/04: Added NuGet.config file

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 6dabe24a8173cf4fcf15e5ff3f1441d5b62f1ac2
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Jun 17 23:27:15 2020 +0700

    Added NuGet.config file
---
 NuGet.config | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/NuGet.config b/NuGet.config
new file mode 100644
index 0000000..940a841
--- /dev/null
+++ b/NuGet.config
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="utf-8"?>
+<configuration>
+  <packageSources>
+    <add key="NuGet official package source" value="https://api.nuget.org/v3/index.json" />
+  </packageSources>
+</configuration>
\ No newline at end of file


[lucenenet] 03/04: build/Dependencies.props: Removed unused MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5 property

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit 383917fb42db02aec6259fc85901ac53ba3c87ee
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Jun 17 21:14:44 2020 +0700

    build/Dependencies.props: Removed unused MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5 property
---
 build/Dependencies.props | 2 --
 1 file changed, 2 deletions(-)

diff --git a/build/Dependencies.props b/build/Dependencies.props
index 889eb56..d1ebb3c 100644
--- a/build/Dependencies.props
+++ b/build/Dependencies.props
@@ -47,8 +47,6 @@
     <MicrosoftCSharpPackageVersion>4.4.0</MicrosoftCSharpPackageVersion>
     <MicrosoftExtensionsDependencyModelPackageVersion>2.0.0</MicrosoftExtensionsDependencyModelPackageVersion>
 
-    <MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5>1.0.0</MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5>
-
     <MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5_1>1.1.2</MicrosoftExtensionsConfigurationAbstractionsPackageVersion_NET4_5_1>
     <MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1>1.1.2</MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1>
     <MicrosoftExtensionsConfigurationJsonPackageVersion_NET4_5_1>$(MicrosoftExtensionsConfigurationPackageVersion_NET4_5_1)</MicrosoftExtensionsConfigurationJsonPackageVersion_NET4_5_1>


[lucenenet] 01/04: PERFORMANCE: Boxing issue causing issue with some unit tests that were using AreEqual with bool. Added overloads of AreEqual that accept bool to cover the project systemically without changing tests. (#261, #295)

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit a54545d57e9c4370bec46282e7597e252653e743
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Jun 17 19:32:59 2020 +0700

    PERFORMANCE: Boxing issue causing issue with some unit tests that were using AreEqual with bool. Added overloads of AreEqual that accept bool to cover the project systemically without changing tests. (#261, #295)
---
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/TestFramework/Assert.cs                | 40 ++++++++++++++++++++++
 .../Support/JavaCompatibility/LuceneTestCase.cs    | 10 ++++++
 4 files changed, 130 insertions(+)

diff --git a/src/Lucene.Net.TestFramework.MSTest/Support/TestFramework/Assert.cs b/src/Lucene.Net.TestFramework.MSTest/Support/TestFramework/Assert.cs
index a0c688c..5570ff3 100644
--- a/src/Lucene.Net.TestFramework.MSTest/Support/TestFramework/Assert.cs
+++ b/src/Lucene.Net.TestFramework.MSTest/Support/TestFramework/Assert.cs
@@ -78,6 +78,46 @@ namespace Lucene.Net.TestFramework
         {
             MSTest.Assert.AreEqual(expected, actual, message, args);
         }
+		        //
+        // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        public static void AreEqual(bool expected, bool actual)
+        {
+            MSTest.Assert.IsTrue(expected.Equals(actual));
+        }
+        //
+        // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        //
+        //   message:
+        //     The message to display in case of failure
+        //
+        //   args:
+        //     Array of objects to be used in formatting the message
+        public static void AreEqual(bool expected, bool actual, string message, params object[] args)
+        {
+            MSTest.Assert.IsTrue(expected.Equals(actual), message, args);
+        }
         //
         // Summary:
         //     Verifies that two doubles are equal considering a delta. If the expected value
diff --git a/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs b/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs
index 42a1bed..428e476 100644
--- a/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs
+++ b/src/Lucene.Net.TestFramework.NUnit/Support/TestFramework/Assert.cs
@@ -80,6 +80,46 @@ namespace Lucene.Net.TestFramework
         }
         //
         // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        public static void AreEqual(bool expected, bool actual)
+        {
+            _NUnit.Assert.IsTrue(expected.Equals(actual));
+        }
+        //
+        // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        //
+        //   message:
+        //     The message to display in case of failure
+        //
+        //   args:
+        //     Array of objects to be used in formatting the message
+        public static void AreEqual(bool expected, bool actual, string message, params object[] args)
+        {
+            _NUnit.Assert.IsTrue(expected.Equals(actual), message, args);
+        }
+        //
+        // Summary:
         //     Verifies that two doubles are equal considering a delta. If the expected value
         //     is infinity then the delta value is ignored. If they are not equal then an NUnit.Framework.AssertionException
         //     is thrown.
diff --git a/src/Lucene.Net.TestFramework.xUnit/Support/TestFramework/Assert.cs b/src/Lucene.Net.TestFramework.xUnit/Support/TestFramework/Assert.cs
index e086675..51c00b9 100644
--- a/src/Lucene.Net.TestFramework.xUnit/Support/TestFramework/Assert.cs
+++ b/src/Lucene.Net.TestFramework.xUnit/Support/TestFramework/Assert.cs
@@ -77,6 +77,46 @@ namespace Lucene.Net.TestFramework
         {
             Xunit.Assert.True(object.Equals(expected, actual), FormatMessage(message, args));
         }
+		//
+        // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        public static void AreEqual(bool expected, bool actual)
+        {
+            Xunit.Assert.True(expected.Equals(actual));
+        }
+        //
+        // Summary:
+        //     Verifies that two objects are equal. Two objects are considered equal if both
+        //     are null, or if both have the same value. NUnit has special semantics for some
+        //     object types. If they are not equal an NUnit.Framework.AssertionException is
+        //     thrown.
+        //
+        // Parameters:
+        //   expected:
+        //     The value that is expected
+        //
+        //   actual:
+        //     The actual value
+        //
+        //   message:
+        //     The message to display in case of failure
+        //
+        //   args:
+        //     Array of objects to be used in formatting the message
+        public static void AreEqual(bool expected, bool actual, string message, params object[] args)
+        {
+            Xunit.Assert.True(expected.Equals(actual), FormatMessage(message, args));
+        }
         //
         // Summary:
         //     Verifies that two doubles are equal considering a delta. If the expected value
diff --git a/src/Lucene.Net.TestFramework/Support/JavaCompatibility/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Support/JavaCompatibility/LuceneTestCase.cs
index 8442531..aaca9df 100644
--- a/src/Lucene.Net.TestFramework/Support/JavaCompatibility/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Support/JavaCompatibility/LuceneTestCase.cs
@@ -78,6 +78,16 @@ namespace Lucene.Net.Util
             Assert.AreEqual(expected, actual, message);
         }
 
+        internal static void assertEquals(bool expected, bool actual)
+        {
+            Assert.AreEqual(expected, actual);
+        }
+
+        internal static void assertEquals(string message, bool expected, bool actual)
+        {
+            Assert.AreEqual(expected, actual, message);
+        }
+
         internal static void assertEquals(long expected, long actual)
         {
             Assert.AreEqual(expected, actual);


[lucenenet] 02/04: build/build.ps1: Added Powershell version number check

Posted by ni...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucenenet.git

commit c6efbd3ea5ca95466ac2dc8c6b9d07442fa59fd8
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Wed Jun 17 20:42:12 2020 +0700

    build/build.ps1: Added Powershell version number check
---
 build/build.ps1 | 1 +
 1 file changed, 1 insertion(+)

diff --git a/build/build.ps1 b/build/build.ps1
index 176fa2e..36c82d1 100644
--- a/build/build.ps1
+++ b/build/build.ps1
@@ -111,6 +111,7 @@ task Init -depends InstallSDK, UpdateLocalSDKVersion -description "This task mak
 	Write-Host "Configuration: $configuration"
 	Write-Host "Platform: $platform"
 	Write-Host "MaximumParallelJobs: $($maximumParalellJobs.ToString())"
+	Write-Host "Powershell Version: $($PSVersionTable.PSVersion)"
 
 	Ensure-Directory-Exists "$release_directory"
 }