You could but that asserts that MarkAsInTest() is always called before InTest(), which isn't something I can guarantee because someone could call InTest() from a static initializer (Ideally we should probably throw in that case so they get a somewhat humane error message)