From efd2c1245677047d6b6708263a77efd035545fc0 Mon Sep 17 00:00:00 2001 From: Jevon Date: Sat, 14 May 2022 20:03:07 +0100 Subject: [PATCH] Remove references to NETCOREAPP1_0 as obsolete #612 - Updating Windsor to support Castle.Core@5.0.0 and modern TFMs --- src/Castle.Windsor.Tests/DefaultValueTestCase.cs | 2 -- src/Castle.Windsor.Tests/TestUtils.cs | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/Castle.Windsor.Tests/DefaultValueTestCase.cs b/src/Castle.Windsor.Tests/DefaultValueTestCase.cs index 2443e02b24..883088926a 100644 --- a/src/Castle.Windsor.Tests/DefaultValueTestCase.cs +++ b/src/Castle.Windsor.Tests/DefaultValueTestCase.cs @@ -94,7 +94,6 @@ public void Uses_explicit_value_over_default() Assert.AreEqual("Adam Mickiewicz", value.Name); } -#if !NETCOREAPP1_0 // FirstChanceException event was added in .NET Core 2.0 [Test] public void First_chance_exceptions_are_not_thrown() { @@ -112,6 +111,5 @@ public HasCtorWithOptionalInterfaceParameter(IEqualityComparer comparer = n { } } -#endif } } \ No newline at end of file diff --git a/src/Castle.Windsor.Tests/TestUtils.cs b/src/Castle.Windsor.Tests/TestUtils.cs index e2aafbe6ae..5f007dd1ef 100644 --- a/src/Castle.Windsor.Tests/TestUtils.cs +++ b/src/Castle.Windsor.Tests/TestUtils.cs @@ -25,7 +25,6 @@ namespace CastleTests public static class TestUtils { -#if !NETCOREAPP1_0 // FirstChanceException event was added in .NET Core 2.0 public static void AssertNoFirstChanceExceptions(Action action) { var firstChanceExceptions = new List(); @@ -58,7 +57,6 @@ public static void AssertNoFirstChanceExceptions(Action action) Assert.Fail(message.ToString()); } } -#endif public static string ConvertToEnvironmentLineEndings(this string value) {