mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-19 22:37:58 +08:00
22 lines
760 B
C#
22 lines
760 B
C#
|
// Copyright (c) Microsoft Corporation
|
|||
|
// The Microsoft Corporation licenses this file to you under the MIT license.
|
|||
|
// See the LICENSE file in the project root for more information.
|
|||
|
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
|||
|
|
|||
|
// Used for STA tests in PreviewPane
|
|||
|
namespace Microsoft.PowerToys.STATestExtension
|
|||
|
{
|
|||
|
public class STATestClassAttribute : TestClassAttribute
|
|||
|
{
|
|||
|
public override TestMethodAttribute GetTestMethodAttribute(TestMethodAttribute testMethodAttribute)
|
|||
|
{
|
|||
|
if (testMethodAttribute is STATestMethodAttribute)
|
|||
|
{
|
|||
|
return testMethodAttribute;
|
|||
|
}
|
|||
|
|
|||
|
return new STATestMethodAttribute(base.GetTestMethodAttribute(testMethodAttribute));
|
|||
|
}
|
|||
|
}
|
|||
|
}
|