Skip to content

Commit 6d408d5

Browse files
committed
feat: add interfaces should start from I convention test
1 parent 712fbd2 commit 6d408d5

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
namespace EvolutionaryArchitecture.Fitnet.ArchitectureTests.Conventions;
2+
3+
using Common;
4+
5+
public sealed class InterfacesConventionsTests
6+
{
7+
[Fact]
8+
internal void ShouldStartWithI()
9+
{
10+
// Arrange
11+
var rules = Solution.Types.That()
12+
.AreInterfaces()
13+
.Should()
14+
.HaveNameStartingWith("I");
15+
16+
// Act
17+
var result = rules.GetResult();
18+
19+
// Assert
20+
result.IsSuccessful.Should().BeTrue();
21+
}
22+
}

0 commit comments

Comments
 (0)