How do I unit test a constant that define an implementation detail? and should I?For instance let's say I have the following class:class A {   private Cache _cache;   const int timeToLiveInCache = 30; // 30 seconds of TTL   A()   {      _cache = new Cache(timeToLiveInCache);   }}In my unit test, how can I test that my TTL is indeed 30 seconds?The Cache class has been tested and I know that whatever TTL I input will work as intended, but I want a unit test to make sure that the class A actually uses a TTL of 30 seconds. Is it even a good idea to unit test that?
how to unit test constant that define an implementation detail?
unit testing;testing