Skip to content

Commit 1612b4d

Browse files
authored
Update README.md
1 parent 1d92758 commit 1612b4d

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,5 +190,24 @@ var result = Types.InCurrentDomain()
190190

191191
## Options
192192

193+
User options allows to configure how NetArchTest engine works.
194+
195+
```csharp
196+
var result = Types.InCurrentDomain()
197+
.That()
198+
.ResideInNamespace("NetArchTest.TestStructure.NameMatching.Namespace3")
199+
.Should()
200+
.HaveNameStartingWith("Some")
201+
.GetResult(Options.Default with { Comparer = StringComparison.Ordinal});
202+
203+
Assert.True(result.IsSuccessful);
204+
```
205+
206+
Available options:
207+
- Comparer - allows to specify how strings will be compared (right now it only affects: Predicate.HaveName, Predicate.HaveNameStartingWith, Predicate.HaveNameEndingWith)
208+
209+
193210
## Limitations
194211

212+
NetArchTest is build on top of [jbevain/cecil](https://github.com/jbevain/cecil) thus it works on CLI level. Unfortunately not every feature of C# language is represented in CLI, thus some things will never be available in NetArchTest, e.g.:
213+
- BenMorris/NetArchTest#81 - NetArchTest ignores a nameof expression

0 commit comments

Comments
 (0)