public void ConstructorTakesPath() { var path = Mock.Of<IDirectoryInfo>(p => p.FullName == Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString()) && p.Exists == true); var underTest = new RepositoryRootDeletedDetection(path); Assert.That(underTest.Priority, Is.EqualTo(EventHandlerPriorities.CRITICAL)); }