Hi!

(Sorry I'm cross-posting this thread from italian group also, I will post 
only here.)

In an integration test, to verify if the 2nd level cache is enabled and is 
working I'm doing this, is correct?
SessionFactory
    .Statistics
    .SecondLevelCacheMissCount
    .Should()
    .Be
    .EqualTo(0);

[Update]
In some cases (if I run all solution test that destroy and recreate database 
using EntityFramework)
this value is equal to 2, in other cases is 0.

Thanks!

Reply via email to