Skip to content

Commit 463ec9b

Browse files
committed
skip analyzer coding style tests that assert properties are explicit when referencing internalized json.net
1 parent cd8ea82 commit 463ec9b

File tree

3 files changed

+12
-7
lines changed

3 files changed

+12
-7
lines changed

src/Tests/CodeStandards/Analysis.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88

99
namespace Tests.CodeStandards
1010
{
11+
[ProjectReferenceOnly]
1112
public class Analysis
1213
{
1314
/**
1415
* Every analyzer interface should attribute properties with JsonPropertyAttribute
1516
*/
16-
[U]
17+
[U()]
1718
public void AnalyzerPropertiesAreAttributedWithJsonPropertyAttribute() =>
1819
PropertiesOfTypeAreAttributedWithJsonPropertyAttribute(typeof(IAnalyzer));
1920

src/Tests/Framework/XUnitPlumbing/IntegrationOnlyAttribute.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,4 @@ namespace Tests.Framework
88
/// </summary>
99
[AttributeUsage(AttributeTargets.Class)]
1010
public class IntegrationOnlyAttribute : Attribute { }
11-
12-
/// <summary>
13-
/// Ignores all unit tests on from a class when we are running the unit tests against a PackageReference instead of ProjectReference
14-
/// </summary>
15-
[AttributeUsage(AttributeTargets.Class)]
16-
public class ProjectReferenceOnlyAttribute : Attribute { }
1711
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
using System;
2+
3+
namespace Tests.Framework
4+
{
5+
/// <summary>
6+
/// Ignores all unit tests on from a class when we are running the unit tests against a PackageReference instead of ProjectReference
7+
/// </summary>
8+
[AttributeUsage(AttributeTargets.Class)]
9+
public class ProjectReferenceOnlyAttribute : Attribute { }
10+
}

0 commit comments

Comments
 (0)