-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add rules: HavePublicConstructor/ DoNotHavePublicConstructor
- Loading branch information
Showing
10 changed files
with
190 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/NetArchTest.TestStructure/Constructors/DefaultConstructor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.TestStructure.Constructors | ||
{ | ||
internal class DefaultConstructor | ||
{ | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/NetArchTest.TestStructure/Constructors/InternalConstructor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.TestStructure.Constructors | ||
{ | ||
internal class InternalConstructor | ||
{ | ||
internal InternalConstructor() | ||
{ | ||
|
||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/NetArchTest.TestStructure/Constructors/PrivateConstructor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.TestStructure.Constructors | ||
{ | ||
internal class PrivateConstructor | ||
{ | ||
|
||
|
||
private PrivateConstructor() | ||
{ | ||
|
||
} | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
tests/NetArchTest.TestStructure/Constructors/PublicConstructor.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.TestStructure.Constructors | ||
{ | ||
internal class PublicConstructor | ||
{ | ||
public PublicConstructor() | ||
{ | ||
|
||
} | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
tests/NetArchTest.TestStructure/Constructors/PublicConstructorOneArgument.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
|
||
namespace NetArchTest.TestStructure.Constructors | ||
{ | ||
internal class PublicConstructorOneArgument | ||
{ | ||
|
||
|
||
public PublicConstructorOneArgument(int a) | ||
{ | ||
|
||
} | ||
} | ||
} |