public void GetResourceObjectWithCulture()
        {
            const string expectedName = "Rick Evans";

            Expect.Call(MockMessageSource.GetResourceObject(LookupKey, CultureInfo.InvariantCulture)).Return(expectedName);
            DelegatingMessageSource source
                = new DelegatingMessageSource(MockMessageSource);

            mocks.ReplayAll();
            string name = (string)source.GetResourceObject(LookupKey, CultureInfo.InvariantCulture);

            Assert.AreEqual(expectedName, name);
            mocks.VerifyAll();
        }
        public void GetResourceObjectWithNoParentMessageSourceWithCulture()
        {
            DelegatingMessageSource source = new DelegatingMessageSource();

            Assert.Throws <ApplicationContextException>(() => source.GetResourceObject(LookupKey, CultureInfo.InvariantCulture));
        }
        public void GetResourceObjectWithNoParentMessageSource()
        {
            DelegatingMessageSource source = new DelegatingMessageSource();

            Assert.Throws <ApplicationContextException>(() => source.GetResourceObject(LookupKey));
        }