Skip to content

Commit c717230

Browse files
authored
Cleanup to skip/flaky attributes (dotnet/extensions#2186)
\n\nCommit migrated from dotnet/extensions@cfef5e0
1 parent 9372816 commit c717230

30 files changed

+144
-27
lines changed

src/Testing/src/TestPlatformHelper.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ public static class TestPlatformHelper
2020
public static bool IsMac =>
2121
RuntimeInformation.IsOSPlatform(OSPlatform.OSX);
2222
}
23-
}
23+
}

src/Testing/src/xunit/ConditionalFactAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Xunit;
66
using Xunit.Sdk;
77

8-
namespace Microsoft.AspNetCore.Testing.xunit
8+
namespace Microsoft.AspNetCore.Testing
99
{
1010
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
1111
[XunitTestCaseDiscoverer("Microsoft.AspNetCore.Testing.xunit." + nameof(ConditionalFactDiscoverer), "Microsoft.AspNetCore.Testing")]

src/Testing/src/xunit/ConditionalFactDiscoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Xunit.Abstractions;
55
using Xunit.Sdk;
66

7-
namespace Microsoft.AspNetCore.Testing.xunit
7+
namespace Microsoft.AspNetCore.Testing
88
{
99
internal class ConditionalFactDiscoverer : FactDiscoverer
1010
{

src/Testing/src/xunit/ConditionalTheoryAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Xunit;
66
using Xunit.Sdk;
77

8-
namespace Microsoft.AspNetCore.Testing.xunit
8+
namespace Microsoft.AspNetCore.Testing
99
{
1010
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
1111
[XunitTestCaseDiscoverer("Microsoft.AspNetCore.Testing.xunit." + nameof(ConditionalTheoryDiscoverer), "Microsoft.AspNetCore.Testing")]

src/Testing/src/xunit/ConditionalTheoryDiscoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using Xunit.Abstractions;
66
using Xunit.Sdk;
77

8-
namespace Microsoft.AspNetCore.Testing.xunit
8+
namespace Microsoft.AspNetCore.Testing
99
{
1010
internal class ConditionalTheoryDiscoverer : TheoryDiscoverer
1111
{

src/Testing/src/xunit/DockerOnlyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
using System.Linq;
77
using System.Runtime.InteropServices;
88

9-
namespace Microsoft.AspNetCore.Testing.xunit
9+
namespace Microsoft.AspNetCore.Testing
1010
{
1111
[AttributeUsage(AttributeTargets.Method, Inherited = true, AllowMultiple = false)]
1212
public sealed class DockerOnlyAttribute : Attribute, ITestCondition

src/Testing/src/xunit/EnvironmentVariableSkipConditionAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System;
55
using System.Linq;
66

7-
namespace Microsoft.AspNetCore.Testing.xunit
7+
namespace Microsoft.AspNetCore.Testing
88
{
99
/// <summary>
1010
/// Skips a test when the value of an environment variable matches any of the supplied values.

src/Testing/src/xunit/FlakyAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using System.Collections.Generic;
33
using Xunit.Sdk;
44

5-
namespace Microsoft.AspNetCore.Testing.xunit
5+
namespace Microsoft.AspNetCore.Testing
66
{
77
/// <summary>
88
/// Marks a test as "Flaky" so that the build will sequester it and ignore failures.

src/Testing/src/xunit/FlakyTestDiscoverer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Xunit.Abstractions;
55
using Xunit.Sdk;
66

7-
namespace Microsoft.AspNetCore.Testing.xunit
7+
namespace Microsoft.AspNetCore.Testing
88
{
99
public class FlakyTestDiscoverer : ITraitDiscoverer
1010
{

src/Testing/src/xunit/FrameworkSkipConditionAttribute.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
using System;
55

6-
namespace Microsoft.AspNetCore.Testing.xunit
6+
namespace Microsoft.AspNetCore.Testing
77
{
88
[AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
99
public class FrameworkSkipConditionAttribute : Attribute, ITestCondition

0 commit comments

Comments
 (0)