title: Method/Property that will be only accessible when run in xunit
body: <p>In .net core, how can i define a method/property that will be only accessible through unit tests(xuint)? I am fine with it throwing an exception when it gets accessed by code that is not run during a unit test</p>