1
0
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:
Sergio Pedri 2021-11-01 22:12:56 +01:00
parent c176080d37
commit 58c0dd96c4
81 changed files with 101 additions and 101 deletions
tests
CommunityToolkit.Common.UnitTests
CommunityToolkit.Diagnostics.UnitTests
CommunityToolkit.HighPerformance.UnitTests
CommunityToolkit.Mvvm.ExternalAssembly.UnitTests
CommunityToolkit.Mvvm.SourceGenerators.UnitTests
CommunityToolkit.Mvvm.UnitTests

View File

@ -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>
{

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -6,7 +6,7 @@
using CommunityToolkit.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.Diagnostics;
namespace CommunityToolkit.Diagnostics.UnitTests;
public partial class Test_Guard
{

View File

@ -6,7 +6,7 @@
using CommunityToolkit.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.Diagnostics;
namespace CommunityToolkit.Diagnostics.UnitTests;
public partial class Test_Guard
{

View File

@ -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

View File

@ -13,7 +13,7 @@
using CommunityToolkit.Diagnostics;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.Diagnostics;
namespace CommunityToolkit.Diagnostics.UnitTests;
[TestClass]
public class Test_ThrowHelper

View File

@ -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();

View File

@ -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.

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -12,7 +12,7 @@
#nullable enable
namespace UnitTests.HighPerformance.Buffers;
namespace CommunityToolkit.HighPerformance.UnitTests.Buffers;
[TestClass]
public class Test_StringPool

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -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
{

View File

@ -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
{

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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
{

View File

@ -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();

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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")]

View File

@ -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

View File

@ -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

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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
{

View File

@ -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")]

View File

@ -10,7 +10,7 @@
using CommunityToolkit.HighPerformance;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance;
namespace CommunityToolkit.HighPerformance.UnitTests;
/* ====================================================================
* NOTE

View File

@ -9,7 +9,7 @@
using CommunityToolkit.HighPerformance.Enumerables;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace UnitTests.HighPerformance;
namespace CommunityToolkit.HighPerformance.UnitTests;
/* ====================================================================
* NOTE

View File

@ -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")]

View File

@ -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

View File

@ -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

View File

@ -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
{

View File

@ -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

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -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")]

View File

@ -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.

View File

@ -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

View File

@ -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

View File

@ -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")]

View File

@ -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]

View File

@ -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));
}
}

View File

@ -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]

View File

@ -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
{

View File

@ -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]

View File

@ -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

View File

@ -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]

View File

@ -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]

View File

@ -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

View File

@ -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]

View File

@ -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

View File

@ -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

View File

@ -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")]