Skip to content

Commit

Permalink
feat: add interfaces should start from I convention test
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilbaczek committed Dec 29, 2023
1 parent ea1217b commit 138b211
Showing 1 changed file with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
namespace EvolutionaryArchitecture.Fitnet.ArchitectureTests.Conventions;

using Common;

public sealed class InterfacesConventionsTests
{
[Fact]
internal void ShouldStartWithI()
{
// Arrange
var rules = Solution.Types.That()
.AreInterfaces()
.Should()
.HaveNameStartingWith("I");

// Act
var result = rules.GetResult();

// Assert
result.IsSuccessful.Should().BeTrue();
}
}

0 comments on commit 138b211

Please sign in to comment.