BenMorris / NetArchTest

A fluent API for .Net that can enforce architectural rules in unit tests.
MIT License
1.41k stars 83 forks source link

NRE when constant field has null value #137

Open batkaevruslan opened 11 months ago

batkaevruslan commented 11 months ago

FindTypesThatHaveDependencyOnAny fails with NRE when examined type has constant field with null value

public class Class_C
{
    private const string NullConstant = null;
    Dependency_2 dp2;      
}

Repro https://github.com/BenMorris/NetArchTest/compare/master...batkaevruslan:NetArchTest:const-field-dependency-issue fails test image