mirror of
https://github.com/chylex/.NET-Community-Toolkit.git
synced 2025-01-03 23:42:45 +01:00
Fix namespaces in unit test projects
This commit is contained in:
parent
c176080d37
commit
58c0dd96c4
tests
CommunityToolkit.Common.UnitTests
Collections
IntGroup.csObservableGroupTests.csObservableGroupedCollectionExtensionsTests.csObservableGroupedCollectionTests.csReadOnlyObservableGroupTests.csReadOnlyObservableGroupedCollectionTests.cs
Extensions
CommunityToolkit.Diagnostics.UnitTests
CommunityToolkit.HighPerformance.UnitTests
Buffers
Internals
Test_ArrayPoolBufferWriter{T}.csTest_MemoryBufferWriter{T}.csTest_MemoryOwner{T}.csTest_SpanOwner{T}.csTest_StringPool.csEnumerables
Extensions
Test_ArrayExtensions.1D.csTest_ArrayExtensions.2D.csTest_ArrayExtensions.3D.csTest_ArrayPoolExtensions.csTest_BoolExtensions.csTest_HashCodeExtensions.csTest_IBufferWriterExtensions.csTest_IMemoryOwnerExtensions.csTest_MemoryExtensions.csTest_NullableExtensions.csTest_ReadOnlyMemoryExtensions.csTest_ReadOnlySpanExtensions.Count.csTest_ReadOnlySpanExtensions.csTest_SpanExtensions.csTest_SpinLockExtensions.csTest_StreamExtensions.csTest_StringExtensions.cs
Helpers
Test_BitHelper.csTest_HashCode{T}.csTest_ObjectMarshal.csTest_ParallelHelper.For.csTest_ParallelHelper.For2D.csTest_ParallelHelper.ForEach.In.csTest_ParallelHelper.ForEach.In2D.csTest_ParallelHelper.ForEach.Ref.csTest_ParallelHelper.ForEach.Ref2D.csTest_ParallelHelper.ThrowExceptions.cs
Memory
Streams
Test_IBufferWriterStream.csTest_IMemoryOwnerStream.csTest_MemoryStream.ThrowExceptions.csTest_MemoryStream.cs
Test_Box{T}.csTest_NullableReadOnlyRef{T}.csTest_NullableRef{T}.csTest_ReadOnlyRef{T}.csTest_Ref{T}.csCommunityToolkit.Mvvm.ExternalAssembly.UnitTests
CommunityToolkit.Mvvm.SourceGenerators.UnitTests
CommunityToolkit.Mvvm.UnitTests
Test_AsyncRelayCommand.csTest_AsyncRelayCommand{T}.csTest_ICommandAttribute.csTest_INotifyPropertyChangedAttribute.csTest_IRecipientGenerator.csTest_Messenger.Request.csTest_Messenger.csTest_ObservableObject.csTest_ObservableObjectAttribute.csTest_ObservablePropertyAttribute.csTest_ObservableRecipient.csTest_ObservableRecipientAttribute.csTest_ObservableValidator.csTest_RelayCommand.csTest_RelayCommand{T}.cs
@ -5,7 +5,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
public class IntGroup : List<int>, IGrouping<string, int>
|
||||
{
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Common.Collections;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
[TestClass]
|
||||
public class ObservableGroupTests
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Common.Collections;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
[TestClass]
|
||||
public class ObservableGroupedCollectionExtensionsTests
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Common.Collections;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
[TestClass]
|
||||
public class ObservableGroupedCollectionTests
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.Common.Collections;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
[TestClass]
|
||||
public class ReadOnlyObservableGroupTests
|
||||
|
@ -12,7 +12,7 @@
|
||||
using CommunityToolkit.Common.Collections;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Collections;
|
||||
namespace CommunityToolkit.Common.UnitTests.Collections;
|
||||
|
||||
[TestClass]
|
||||
public class ReadOnlyObservableGroupedCollectionTests
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.Common;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Extensions;
|
||||
namespace CommunityToolkit.Common.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ArrayExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Common.Deferred;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Extensions;
|
||||
namespace CommunityToolkit.Common.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_EventHandlerExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Common;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Extensions;
|
||||
namespace CommunityToolkit.Common.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_TaskExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Extensions;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_TypeExtensions
|
||||
|
@ -5,7 +5,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Extensions;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ValueTypeExtensions
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Diagnostics;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests;
|
||||
|
||||
public partial class Test_Guard
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Diagnostics;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests;
|
||||
|
||||
public partial class Test_Guard
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Diagnostics;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public partial class Test_Guard
|
||||
|
@ -13,7 +13,7 @@
|
||||
using CommunityToolkit.Diagnostics;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Diagnostics;
|
||||
namespace CommunityToolkit.Diagnostics.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ThrowHelper
|
||||
|
@ -5,11 +5,11 @@
|
||||
using System.Buffers;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace UnitTests.HighPerformance.Shared.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
public sealed class TrackingArrayPool<T> : ArrayPool<T>
|
||||
internal sealed class TrackingArrayPool<T> : ArrayPool<T>
|
||||
{
|
||||
private readonly ArrayPool<T> pool = ArrayPool<T>.Create();
|
||||
private readonly ArrayPool<T> pool = Create();
|
||||
|
||||
private readonly HashSet<T[]> arrays = new();
|
||||
|
@ -7,7 +7,7 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
/// <summary>
|
||||
/// An owner for a buffer of an unmanaged type, recycling <see cref="byte"/> arrays to save memory.
|
||||
|
@ -9,10 +9,10 @@
|
||||
using System.Reflection;
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers;
|
||||
|
||||
namespace UnitTests.HighPerformance.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,9 +7,9 @@
|
||||
using System.Linq;
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,9 +7,9 @@
|
||||
using System.Linq;
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -12,7 +12,7 @@
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace UnitTests.HighPerformance.Buffers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
|
||||
|
||||
[TestClass]
|
||||
public class Test_StringPool
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Enumerables;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Enumerables;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Enumerables;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Enumerables;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Partial test class")]
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
public partial class Test_ArrayExtensions
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
public partial class Test_ArrayExtensions
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ArrayPoolExtensions
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_BoolExtensions
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_HashCodeExtensions
|
||||
|
@ -12,7 +12,7 @@
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_IBufferWriterExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_IMemoryOwnerExtensions
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_MemoryExtensions
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance.Extensions;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions
|
||||
{
|
||||
[TestClass]
|
||||
public class Test_NullableExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ReadOnlyMemoryExtensions
|
||||
|
@ -9,11 +9,11 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
public partial class Test_ReadOnlySpanExtensions
|
||||
{
|
||||
|
@ -9,8 +9,9 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Partial test class")]
|
||||
@ -20,7 +21,7 @@ public partial class Test_ReadOnlySpanExtensions
|
||||
[TestMethod]
|
||||
public void Test_ReadOnlySpanExtensions_DangerousGetReference()
|
||||
{
|
||||
using Shared.Buffers.Internals.UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
using UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
|
||||
ReadOnlySpan<int> data = owner.GetSpan();
|
||||
|
||||
@ -34,7 +35,7 @@ public void Test_ReadOnlySpanExtensions_DangerousGetReference()
|
||||
[TestMethod]
|
||||
public void Test_ReadOnlySpanExtensions_DangerousGetReferenceAt_Zero()
|
||||
{
|
||||
using Shared.Buffers.Internals.UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
using UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
|
||||
ReadOnlySpan<int> data = owner.GetSpan();
|
||||
|
||||
@ -48,7 +49,7 @@ public void Test_ReadOnlySpanExtensions_DangerousGetReferenceAt_Zero()
|
||||
[TestMethod]
|
||||
public void Test_ReadOnlySpanExtensions_DangerousGetReferenceAt_Index()
|
||||
{
|
||||
using Shared.Buffers.Internals.UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
using UnmanagedSpanOwner<int>? owner = CreateRandomData<int>(12, default);
|
||||
|
||||
ReadOnlySpan<int> data = owner.GetSpan();
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_SpanExtensions
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_SpinLockExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_StreamExtensions
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_StringExtensions
|
||||
|
@ -5,7 +5,7 @@
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
[TestClass]
|
||||
public class Test_BitHelper
|
||||
|
@ -8,9 +8,9 @@
|
||||
using System.Runtime.InteropServices;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Extensions;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Extensions;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ObjectMarshal
|
||||
|
@ -3,12 +3,11 @@
|
||||
// See the LICENSE file in the project root for more information.
|
||||
|
||||
using System;
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
[TestClass]
|
||||
public partial class Test_ParallelHelper
|
||||
|
@ -6,9 +6,9 @@
|
||||
using System.Drawing;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -8,9 +8,9 @@
|
||||
using System.Threading;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -5,9 +5,9 @@
|
||||
using System;
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using UnitTests.HighPerformance.Shared.Buffers.Internals;
|
||||
using CommunityToolkit.HighPerformance.UnitTests.Buffers.Internals;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.HighPerformance.Helpers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -7,7 +7,7 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using ArgumentOutOfRangeException = System.ArgumentOutOfRangeException;
|
||||
|
||||
namespace UnitTests.HighPerformance.Helpers;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Helpers;
|
||||
|
||||
public partial class Test_ParallelHelper
|
||||
{
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
/* ====================================================================
|
||||
* NOTE
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
/* ====================================================================
|
||||
* NOTE
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance.Enumerables;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -11,7 +11,7 @@
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Streams;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Streams;
|
||||
|
||||
[TestClass]
|
||||
public class Test_IBufferWriterStream
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance.Buffers;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Streams;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Streams;
|
||||
|
||||
[TestClass]
|
||||
public class Test_IMemoryOwnerStream
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Streams;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Streams;
|
||||
|
||||
public partial class Test_MemoryStream
|
||||
{
|
||||
|
@ -11,7 +11,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance.Streams;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests.Streams;
|
||||
|
||||
[TestClass]
|
||||
public partial class Test_MemoryStream
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.HighPerformance;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.HighPerformance;
|
||||
namespace CommunityToolkit.HighPerformance.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Test class for generic type")]
|
||||
|
@ -4,7 +4,7 @@
|
||||
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
|
||||
namespace UnitTests.NetStandard;
|
||||
namespace CommunityToolkit.Mvvm.ExternalAssembly.UnitTests;
|
||||
|
||||
/// <summary>
|
||||
/// See https://github.com/CommunityToolkit/WindowsCommunityToolkit/issues/4167.
|
||||
|
@ -13,7 +13,7 @@
|
||||
using CommunityToolkit.Mvvm.SourceGenerators;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.SourceGenerators.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_SourceGeneratorsDiagnostics
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_AsyncRelayCommand
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Generic type")]
|
||||
|
@ -10,7 +10,7 @@
|
||||
|
||||
#pragma warning disable SA1124
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
@ -112,10 +112,10 @@ public partial class SampleModelWithINPCAndObservableProperties
|
||||
[TestMethod]
|
||||
public void Test_INotifyPropertyChanged_WithGeneratedProperties_ExternalNetStandard20Assembly()
|
||||
{
|
||||
Assert.IsTrue(typeof(INotifyPropertyChanged).IsAssignableFrom(typeof(NetStandard.SampleModelWithINPCAndObservableProperties)));
|
||||
Assert.IsFalse(typeof(INotifyPropertyChanging).IsAssignableFrom(typeof(NetStandard.SampleModelWithINPCAndObservableProperties)));
|
||||
Assert.IsTrue(typeof(INotifyPropertyChanged).IsAssignableFrom(typeof(ExternalAssembly.UnitTests.SampleModelWithINPCAndObservableProperties)));
|
||||
Assert.IsFalse(typeof(INotifyPropertyChanging).IsAssignableFrom(typeof(ExternalAssembly.UnitTests.SampleModelWithINPCAndObservableProperties)));
|
||||
|
||||
NetStandard.SampleModelWithINPCAndObservableProperties model = new();
|
||||
ExternalAssembly.UnitTests.SampleModelWithINPCAndObservableProperties model = new();
|
||||
List<PropertyChangedEventArgs> eventArgs = new();
|
||||
|
||||
model.PropertyChanged += (s, e) => eventArgs.Add(e);
|
||||
@ -124,7 +124,7 @@ public void Test_INotifyPropertyChanged_WithGeneratedProperties_ExternalNetStand
|
||||
model.Y = 66;
|
||||
|
||||
Assert.AreEqual(eventArgs.Count, 2);
|
||||
Assert.AreEqual(eventArgs[0].PropertyName, nameof(NetStandard.SampleModelWithINPCAndObservableProperties.X));
|
||||
Assert.AreEqual(eventArgs[1].PropertyName, nameof(NetStandard.SampleModelWithINPCAndObservableProperties.Y));
|
||||
Assert.AreEqual(eventArgs[0].PropertyName, nameof(ExternalAssembly.UnitTests.SampleModelWithINPCAndObservableProperties.X));
|
||||
Assert.AreEqual(eventArgs[1].PropertyName, nameof(ExternalAssembly.UnitTests.SampleModelWithINPCAndObservableProperties.Y));
|
||||
}
|
||||
}
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.Mvvm.Messaging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -10,7 +10,7 @@
|
||||
using CommunityToolkit.Mvvm.Messaging.Messages;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
public partial class Test_Messenger
|
||||
{
|
||||
|
@ -9,7 +9,7 @@
|
||||
using CommunityToolkit.Mvvm.Messaging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ObservableObject
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -16,7 +16,7 @@
|
||||
|
||||
#nullable enable
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -8,7 +8,7 @@
|
||||
using CommunityToolkit.Mvvm.Messaging.Messages;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ObservableRecipient
|
||||
|
@ -12,7 +12,7 @@
|
||||
using CommunityToolkit.Mvvm.Messaging;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1601", Justification = "Type only used for testing")]
|
||||
[TestClass]
|
||||
|
@ -12,7 +12,7 @@
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_ObservableValidator
|
||||
|
@ -6,7 +6,7 @@
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
public class Test_RelayCommand
|
||||
|
@ -7,7 +7,7 @@
|
||||
using CommunityToolkit.Mvvm.Input;
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
|
||||
namespace UnitTests.Mvvm;
|
||||
namespace CommunityToolkit.Mvvm.UnitTests;
|
||||
|
||||
[TestClass]
|
||||
[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1649", Justification = "Generic type")]
|
||||
|
Loading…
Reference in New Issue
Block a user