You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
usingNetArchTest.Rules;varresult=Types.InCurrentDomain().That().HaveNameStartingWith("MyClass").Should().OnlyHaveDependenciesOn("System","NetArchTestLabs").GetResult();Console.WriteLine(result.IsSuccessful);// should be truenamespaceNetArchTestLabs{publicstaticclassMyClass{privatestaticreadonlyMyEnum[]_values={MyEnum.A,MyEnum.B,MyEnum.C};}publicenumMyEnum{D,A,B,C,Z}}
Am I missing something here or is it expected?
If I remove the first element of the enum, weirdly it behaves as expected, resulting true.
The following code results false:
Am I missing something here or is it expected?
If I remove the first element of the enum, weirdly it behaves as expected, resulting true.
Here is a reproducible example:
https://github.com/jonataspc/NetArchTestLabs
The text was updated successfully, but these errors were encountered: