Skip to content

Commit

Permalink
style: use snake cases with _ in Arch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Dec 30, 2023
1 parent 6d408d5 commit f03315b
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

using Common;

public class ContractsArchitectureTests
public sealed class ContractsArchitectureTests
{
private readonly Assembly _solution = typeof(Program).Assembly;

[Theory]
[InlineData(Modules.Passes)]
[InlineData(Modules.Offers)]
[InlineData(Modules.Reports)]
public void ContractsShouldNotHaveDependencyOnModule(string moduleName)
internal void Contracts_should_not_have_dependency_on_module(string moduleName)
{
// Arrange
var contractsModule = Types.InAssembly(_solution)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public sealed class EndpointsConventionsTests
private const string Endpoint = "Endpoint";

[Fact]
internal void ShouldBeStatic()
internal void Should_be_static()
{
// Arrange
var rules = Solution.Types.That()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
public sealed class InterfacesConventionsTests
{
[Fact]
internal void ShouldStartWithI()
internal void Should_start_with_I()
{
// Arrange
var rules = Solution.Types.That()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

using Common;

public class OffersArchitectureTests
public sealed class OffersArchitectureTests
{
private const string Event = "Event";

[Theory]
[InlineData(Modules.Contracts)]
[InlineData(Modules.Reports)]
public void OffersShouldNotHaveDependencyOnModule(string moduleName)
internal void Offers_should_not_have_dependency_on_module(string moduleName)
{
// Arrange
var offersModule = Solution.Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@ namespace EvolutionaryArchitecture.Fitnet.ArchitectureTests;

using Common;

public class PassesArchitectureTests
public sealed class PassesArchitectureTests
{
private const string Event = "Event";

[Theory]
[InlineData(Modules.Offers)]
[InlineData(Modules.Reports)]
public void PassesShouldNotHaveDependencyOnModule(string moduleName)
internal void Passes_should_not_have_dependency_on_module(string moduleName)
{
// Arrange
var passesModule = Solution.Types
Expand All @@ -32,7 +32,7 @@ public void PassesShouldNotHaveDependencyOnModule(string moduleName)
}

[Fact]
public void PassesShouldCommunicateWithContractViaEvents()
internal void PassesShouldCommunicateWithContractViaEvents()
{
// Arrange
var passesModule = Solution.Types
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ namespace EvolutionaryArchitecture.Fitnet.ArchitectureTests;

using Common;

public class ReportsArchitectureTests
public sealed class ReportsArchitectureTests
{
[Theory]
[InlineData(Modules.Contracts)]
[InlineData(Modules.Passes)]
[InlineData(Modules.Offers)]
public void ReportsShouldNotHaveDependencyOnModule(string moduleName)
internal void Reports_should_not_have_dependency_on_module(string moduleName)
{
// Arrange
var reportsModule = Solution.Types
Expand Down

0 comments on commit f03315b

Please sign in to comment.