From a5ef60ea4d36277ffa618c7f90e95ca85decfab9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 2 Nov 2021 02:36:50 +0100 Subject: [PATCH] Enable .NET Standard 2.0 tests through .NET Framework 4.7.2 --- .../CommunityToolkit.Common.UnitTests.csproj | 2 +- .../CommunityToolkit.Diagnostics.UnitTests.csproj | 2 +- .../Test_Guard.cs | 10 +++++----- .../Buffers/Test_StringPool.cs | 5 +++++ ...CommunityToolkit.HighPerformance.UnitTests.csproj | 3 +-- .../Enumerables/Test_ReadOnlyRefEnumerable{T}.cs | 2 +- .../Enumerables/Test_RefEnumerable{T}.cs | 2 +- .../Extensions/Test_IBufferWriterExtensions.cs | 3 +-- .../Extensions/Test_ReadOnlySpanExtensions.Count.cs | 2 +- .../Extensions/Test_SpinLockExtensions.cs | 2 +- .../Memory/Test_Memory2D{T}.cs | 8 +++----- .../Memory/Test_ReadOnlyMemory2D{T}.cs | 8 +++----- .../Memory/Test_ReadOnlySpan2D{T}.cs | 8 ++++---- .../Memory/Test_Span2D{T}.cs | 12 ++++++------ .../Streams/Test_IBufferWriterStream.cs | 5 ++--- .../Streams/Test_MemoryStream.cs | 5 ++--- .../Test_ReadOnlyRef{T}.cs | 7 +++---- .../Test_Ref{T}.cs | 7 +++---- ...ityToolkit.Mvvm.SourceGenerators.UnitTests.csproj | 1 - .../CommunityToolkit.Mvvm.UnitTests.csproj | 2 +- 20 files changed, 45 insertions(+), 51 deletions(-) diff --git a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj index 999c8712..9aee49a2 100644 --- a/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj +++ b/tests/CommunityToolkit.Common.UnitTests/CommunityToolkit.Common.UnitTests.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1;net5.0 + net472;netcoreapp3.1;net5.0 diff --git a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj index 89c261fa..b0bbbdfa 100644 --- a/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj +++ b/tests/CommunityToolkit.Diagnostics.UnitTests/CommunityToolkit.Diagnostics.UnitTests.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1;net5.0 + net472;netcoreapp3.1;net5.0 diff --git a/tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.cs b/tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.cs index c60402fb..01552c52 100644 --- a/tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.cs +++ b/tests/CommunityToolkit.Diagnostics.UnitTests/Test_Guard.cs @@ -217,7 +217,7 @@ public partial class Test_Guard public void Test_Guard_IsBitwiseEqualTo_Ok() { Guard.IsBitwiseEqualTo(byte.MaxValue, byte.MaxValue, nameof(Test_Guard_IsBitwiseEqualTo_Ok)); - Guard.IsBitwiseEqualTo(MathF.PI, MathF.PI, nameof(Test_Guard_IsBitwiseEqualTo_Ok)); + Guard.IsBitwiseEqualTo((float)Math.PI, (float)Math.PI, nameof(Test_Guard_IsBitwiseEqualTo_Ok)); Guard.IsBitwiseEqualTo(double.Epsilon, double.Epsilon, nameof(Test_Guard_IsBitwiseEqualTo_Ok)); Guid guid = Guid.NewGuid(); @@ -413,8 +413,8 @@ public partial class Test_Guard { Guard.IsLessThanOrEqualTo(1, 2, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); Guard.IsLessThanOrEqualTo(1, 1, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); - Guard.IsLessThanOrEqualTo(0.1f, MathF.PI, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); - Guard.IsLessThanOrEqualTo(MathF.PI, MathF.PI, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); + Guard.IsLessThanOrEqualTo(0.1f, (float)Math.PI, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); + Guard.IsLessThanOrEqualTo((float)Math.PI, (float)Math.PI, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); Guard.IsLessThanOrEqualTo(DateTime.Today, DateTime.MaxValue, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); Guard.IsLessThanOrEqualTo(DateTime.MaxValue, DateTime.MaxValue, nameof(Test_Guard_IsLessThanOrEqualTo_Ok)); } @@ -458,8 +458,8 @@ public partial class Test_Guard { Guard.IsGreaterThanOrEqualTo(2, 1, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); Guard.IsGreaterThanOrEqualTo(1, 1, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); - Guard.IsGreaterThanOrEqualTo(MathF.PI, 1, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); - Guard.IsGreaterThanOrEqualTo(MathF.PI, MathF.PI, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); + Guard.IsGreaterThanOrEqualTo((float)Math.PI, 1, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); + Guard.IsGreaterThanOrEqualTo((float)Math.PI, (float)Math.PI, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); Guard.IsGreaterThanOrEqualTo(DateTime.MaxValue, DateTime.Today, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); Guard.IsGreaterThanOrEqualTo(DateTime.MaxValue, DateTime.MaxValue, nameof(Test_Guard_IsGreaterThanOrEqualTo_Ok)); } diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs index 91c101ba..e8a47883 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Buffers/Test_StringPool.cs @@ -227,9 +227,14 @@ public class Test_StringPool Assert.AreEqual(nameof(helloworld), helloworld); Assert.AreEqual(nameof(dotnetCommunityToolkit), dotnetCommunityToolkit); +#if NETCOREAPP + + // .NET Framework reuses strings in a way that makes these tests fail. + // The actual underlying APIs are still working as expected though. Assert.AreNotSame(hello, pool.GetOrAdd(hello.AsSpan())); Assert.AreNotSame(helloworld, pool.GetOrAdd(helloworld.AsSpan())); Assert.AreNotSame(dotnetCommunityToolkit, pool.GetOrAdd(dotnetCommunityToolkit.AsSpan())); +#endif } [TestCategory("StringPool")] diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj index 3f68469a..022c59f5 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/CommunityToolkit.HighPerformance.UnitTests.csproj @@ -1,8 +1,7 @@ - true - netcoreapp3.1;net5.0 + net472;netcoreapp3.1;net5.0 diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_ReadOnlyRefEnumerable{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_ReadOnlyRefEnumerable{T}.cs index 9c42ff1f..dd6b4ace 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_ReadOnlyRefEnumerable{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_ReadOnlyRefEnumerable{T}.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -#if !WINDOWS_UWP +#if NETCOREAPP using System; using System.Runtime.CompilerServices; diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_RefEnumerable{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_RefEnumerable{T}.cs index 9dfc0f2c..31be66a2 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_RefEnumerable{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Enumerables/Test_RefEnumerable{T}.cs @@ -2,7 +2,7 @@ // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. -#if !WINDOWS_UWP +#if NETCOREAPP using System; using System.Runtime.CompilerServices; diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_IBufferWriterExtensions.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_IBufferWriterExtensions.cs index cc6e6c32..8e77c4e8 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_IBufferWriterExtensions.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_IBufferWriterExtensions.cs @@ -3,12 +3,11 @@ // See the LICENSE file in the project root for more information. using System; -#if !WINDOWS_UWP +#if NETCOREAPP using System.Buffers; #endif using System.IO; using System.Runtime.CompilerServices; -using CommunityToolkit.HighPerformance; using CommunityToolkit.HighPerformance.Buffers; using Microsoft.VisualStudio.TestTools.UnitTesting; diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_ReadOnlySpanExtensions.Count.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_ReadOnlySpanExtensions.Count.cs index 18c599fc..8494ad56 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_ReadOnlySpanExtensions.Count.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_ReadOnlySpanExtensions.Count.cs @@ -42,7 +42,7 @@ public partial class Test_ReadOnlySpanExtensions { TestForType((int)37438941, CreateRandomData); TestForType((uint)37438941, CreateRandomData); - TestForType(MathF.PI, CreateRandomData); + TestForType((float)Math.PI, CreateRandomData); } [TestCategory("ReadOnlySpanExtensions")] diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_SpinLockExtensions.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_SpinLockExtensions.cs index 5303c964..0cecc66f 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_SpinLockExtensions.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Extensions/Test_SpinLockExtensions.cs @@ -46,7 +46,7 @@ public class Test_SpinLockExtensions { for (int j = 0; j < 10; j++) { -#if WINDOWS_UWP +#if NETFRAMEWORK using (SpinLockExtensions.Enter(spinLockOwner, ref spinLockOwner.Lock)) #else using (spinLockOwner.Lock.Enter()) diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs index 660c0883..771064d2 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Memory2D{T}.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -#if !WINDOWS_UWP using System.Runtime.CompilerServices; -#endif using Microsoft.VisualStudio.TestTools.UnitTesting; namespace CommunityToolkit.HighPerformance.UnitTests; @@ -202,7 +200,7 @@ public class Test_Memory2DT _ = Assert.ThrowsException(() => new Memory2D(array, 0, 0, 0, 3, 3)); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("Memory2DT")] [TestMethod] public void Test_Memory2DT_MemoryConstructor() @@ -338,7 +336,7 @@ public class Test_Memory2DT // Memory (or a Span too, for that matter) from a 2D array. bool success = memory2d.TryGetMemory(out Memory memory); -#if WINDOWS_UWP +#if NETFRAMEWORK Assert.IsFalse(success); Assert.IsTrue(memory.IsEmpty); #else @@ -365,7 +363,7 @@ public class Test_Memory2DT Assert.AreEqual(memory.Span[2], 3); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("Memory2DT")] [TestMethod] public void Test_Memory2DT_TryGetMemory_3() diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlyMemory2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlyMemory2D{T}.cs index eadab8cc..08741b25 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlyMemory2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlyMemory2D{T}.cs @@ -3,9 +3,7 @@ // See the LICENSE file in the project root for more information. using System; -#if !WINDOWS_UWP using System.Runtime.CompilerServices; -#endif using Microsoft.VisualStudio.TestTools.UnitTesting; namespace CommunityToolkit.HighPerformance.UnitTests; @@ -182,7 +180,7 @@ public class Test_ReadOnlyMemory2DT _ = Assert.ThrowsException(() => new ReadOnlyMemory2D(array, 0, 0, 0, 3, 3)); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("ReadOnlyMemory2DT")] [TestMethod] public void Test_ReadOnlyMemory2DT_ReadOnlyMemoryConstructor() @@ -304,7 +302,7 @@ public class Test_ReadOnlyMemory2DT bool success = memory2d.TryGetMemory(out ReadOnlyMemory memory); -#if WINDOWS_UWP +#if NETFRAMEWORK Assert.IsFalse(success); Assert.IsTrue(memory.IsEmpty); #else @@ -329,7 +327,7 @@ public class Test_ReadOnlyMemory2DT Assert.AreEqual(memory.Span[2], 3); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("ReadOnlyMemory2DT")] [TestMethod] public void Test_ReadOnlyMemory2DT_TryGetReadOnlyMemory_3() diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlySpan2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlySpan2D{T}.cs index a09d64f5..9959a2f1 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlySpan2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_ReadOnlySpan2D{T}.cs @@ -36,7 +36,7 @@ public class Test_ReadOnlySpan2DT Assert.AreEqual(empty2.Height, 0); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("ReadOnlySpan2DT")] [TestMethod] public unsafe void Test_ReadOnlySpan2DT_RefConstructor() @@ -559,7 +559,7 @@ public class Test_ReadOnlySpan2DT Assert.AreEqual(slice3[0, 0], 5); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("ReadOnlySpan2DT")] [TestMethod] public void Test_ReadOnlySpan2DT_GetRowReadOnlySpan() @@ -644,8 +644,8 @@ public class Test_ReadOnlySpan2DT bool success = span2d.TryGetSpan(out ReadOnlySpan span); -#if WINDOWS_UWP - // Can't get a ReadOnlySpan over a T[,] array on UWP +#if NETFRAMEWORK + // Can't get a ReadOnlySpan over a T[,] array on .NET Standard 2.0 Assert.IsFalse(success); Assert.AreEqual(span.Length, 0); #else diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs index 4fd3b85b..dfb06fbc 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Memory/Test_Span2D{T}.cs @@ -47,7 +47,7 @@ public class Test_Span2DT Assert.AreEqual(empty4.Height, 0); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("Span2DT")] [TestMethod] public unsafe void Test_Span2DT_RefConstructor() @@ -728,7 +728,7 @@ public class Test_Span2DT Assert.AreEqual(slice3[0, 0], 5); } -#if !WINDOWS_UWP +#if NETCOREAPP [TestCategory("Span2DT")] [TestMethod] public void Test_Span2DT_GetRowSpan() @@ -835,12 +835,12 @@ public class Test_Span2DT // This API tries to get a Span for the entire contents of Span2D. // This only works on runtimes if the underlying data is contiguous // and of a size that can fit into a single Span. In this specific test, - // this is not expected to work on UWP because it can't create a Span - // from a 2D array (reasons explained in the comments for the test above). + // this is not expected to work on .NET Standard 2.0 because it can't create a + // Span from a 2D array (reasons explained in the comments for the test above). bool success = span2d.TryGetSpan(out Span span); -#if WINDOWS_UWP - // Can't get a Span over a T[,] array on UWP +#if NETFRAMEWORK + // Can't get a Span over a T[,] array on .NET Standard 2.0 Assert.IsFalse(success); Assert.AreEqual(span.Length, 0); #else diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs index caaa3c20..5ee7ae2f 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_IBufferWriterStream.cs @@ -130,9 +130,8 @@ public class Test_IBufferWriterStream Memory data = Test_MemoryStream.CreateRandomData(64); - // This will use the extension when on .NET Standard 2.0, - // as the Stream class doesn't have Spam or Memory - // public APIs there. This is the case eg. on UWP as well. + // This will use the extension when on .NET Standard 2.0, as the + // Stream class doesn't have Spam or Memory public APIs there. stream.Write(data.Span); Assert.AreEqual(writer.WrittenCount, data.Length); diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_MemoryStream.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_MemoryStream.cs index 860d3c60..fa23fc4c 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_MemoryStream.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Streams/Test_MemoryStream.cs @@ -222,9 +222,8 @@ public partial class Test_MemoryStream Memory data = CreateRandomData(64); - // This will use the extension when on .NET Standard 2.0, - // as the Stream class doesn't have Spam or Memory - // public APIs there. This is the case eg. on UWP as well. + // This will use the extension when on .NET Standard 2.0, as the + // Stream class doesn't have Spam or Memory public APIs there. stream.Write(data.Span); Assert.AreEqual(stream.Position, data.Length); diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Test_ReadOnlyRef{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Test_ReadOnlyRef{T}.cs index d2021a31..d319bf3f 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Test_ReadOnlyRef{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Test_ReadOnlyRef{T}.cs @@ -12,11 +12,11 @@ public class Test_ReadOnlyRefOfT { [TestCategory("ReadOnlyRefOfT")] [TestMethod] -#if WINDOWS_UWP +#if NETFRAMEWORK public void Test_RefOfT_CreateRefOfT() { - var model = new ReadOnlyFieldOwner(); - var reference = new ReadOnlyRef(model, model.Value); + ReadOnlyFieldOwner model = new(); + ReadOnlyRef reference = new(model, model.Value); Assert.IsTrue(Unsafe.AreSame(ref Unsafe.AsRef(model.Value), ref Unsafe.AsRef(reference.Value))); } @@ -26,7 +26,6 @@ public class Test_ReadOnlyRefOfT /// private sealed class ReadOnlyFieldOwner { - [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401", Justification = "Ref readonly access for tests")] public readonly int Value = 1; } #else diff --git a/tests/CommunityToolkit.HighPerformance.UnitTests/Test_Ref{T}.cs b/tests/CommunityToolkit.HighPerformance.UnitTests/Test_Ref{T}.cs index 774f128a..aac58302 100644 --- a/tests/CommunityToolkit.HighPerformance.UnitTests/Test_Ref{T}.cs +++ b/tests/CommunityToolkit.HighPerformance.UnitTests/Test_Ref{T}.cs @@ -12,11 +12,11 @@ public class Test_RefOfT { [TestCategory("RefOfT")] [TestMethod] -#if WINDOWS_UWP +#if NETFRAMEWORK public void Test_RefOfT_CreateRefOfT() { - var model = new FieldOwner { Value = 1 }; - var reference = new Ref(model, ref model.Value); + FieldOwner model = new() { Value = 1 }; + Ref reference = new(model, ref model.Value); Assert.IsTrue(Unsafe.AreSame(ref model.Value, ref reference.Value)); @@ -30,7 +30,6 @@ public class Test_RefOfT /// private sealed class FieldOwner { - [SuppressMessage("StyleCop.CSharp.MaintainabilityRules", "SA1401", Justification = "Quick ref access for tests")] public int Value; } #else diff --git a/tests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj index 08c461eb..e9a39887 100644 --- a/tests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests/CommunityToolkit.Mvvm.SourceGenerators.UnitTests.csproj @@ -2,7 +2,6 @@ net5.0 - false diff --git a/tests/CommunityToolkit.Mvvm.UnitTests/CommunityToolkit.Mvvm.UnitTests.csproj b/tests/CommunityToolkit.Mvvm.UnitTests/CommunityToolkit.Mvvm.UnitTests.csproj index ec1a487a..90ed3269 100644 --- a/tests/CommunityToolkit.Mvvm.UnitTests/CommunityToolkit.Mvvm.UnitTests.csproj +++ b/tests/CommunityToolkit.Mvvm.UnitTests/CommunityToolkit.Mvvm.UnitTests.csproj @@ -1,7 +1,7 @@ - netcoreapp3.1;net5.0 + net472;netcoreapp3.1;net5.0