ArchUnitNET
ArchUnitNET copied to clipboard
A C# architecture test library to specify and assert architecture rules in C# for automated testing.
When using ``` Types() .That() … .Should() .OnlyDependOn(Types().That().ResideInAssembly("System.Console")) .Check(Architecture); ``` This does currently not work, because `ResideInAssembly` matches the fully qualified name like `System.Console, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a`. This is unexpected,...
Using a custom `ICondition` I'm writing a set of tests to validate a set of constructors in my library's layer. I'm enumerating constructor's `IType` parameters, and I'd like to compare...
**Problem Description** In `AddMethodDependencies.HandleIterator()`, the first found instruction with new object op code is an `ArgumentNullException`. The `TypeDefinition` of the declaring type does not have a method named "MoveNext", which...
Allows the creation of more specific slices using regex syntax. Types are grouped by appending all capture groups together. Also added the ability to filter GivenSlices using .Where(). These features...
Hello, I wasn't able to find this information anywhere yet. I've noticed that the property `Name` in the `constructor.Parameters` returns the name of the parameter's type rather than the name...
This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | Type | Update | |---|---|---|---|---|---|---|---| | [Microsoft.NET.Test.Sdk](https://redirect.github.com/microsoft/vstest) | `17.13.0` -> `17.14.1`...
Please provide support for [TUnit](https://github.com/thomhurst/TUnit).
The following line creates the Assembly object with the same value for Name and FullName properties https://github.com/TNG/ArchUnitNET/blob/7fd68bcb28c2a08aa22f78f06a15ac506441a29a/ArchUnitNET/Loader/ArchBuilder.cs#L62C12-L62C50
As long as there is no magic around these predicates, my guess is that we could change `AreNotReadOnly` to `member.Writability != Writability.ReadOnly`. Any objections? (version 0.11.4) ```csharp public static IPredicate...