BenMorris / NetArchTest

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

NRE when constant field has null value #137

Open batkaevruslan opened 8 months ago

batkaevruslan commented 8 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