public void SetUp()
        {
            _factoryStub = MockRepository.GenerateStub <IResourceManagerFactory>();
            _factoryStub.Stub(_ => _.CreateResourceManager(typeof(object))).Return(NullResourceManager.Instance);

            _resolver = new ResourceManagerResolver(_factoryStub);
        }
        public void Resolve_WithResourceManagerOnlyDefinedOnCurrentType_ReturnsNullResourceManagerForInheritedResourceManager()
        {
            var resourceManagerStub = MockRepository.GenerateStub <IResourceManager>();

            _factoryStub.Stub(_ => _.CreateResourceManager(typeof(Class))).Return(resourceManagerStub);
            _factoryStub.Stub(_ => _.CreateResourceManager(typeof(BaseClass))).Return(NullResourceManager.Instance);

            var result = _resolver.Resolve(typeof(Class));

            Assert.That(result.ResourceManager, Is.SameAs(resourceManagerStub));
            Assert.That(result.DefinedResourceManager, Is.SameAs(result.ResourceManager));
            Assert.That(result.InheritedResourceManager.IsNull, Is.True);
        }