public void ApplyResources()
        {
            MockMessageSource.ApplyResources((object)12, "rick", CultureInfo.InvariantCulture);
            DelegatingMessageSource source
                = new DelegatingMessageSource(MockMessageSource);

            mocks.ReplayAll();
            source.ApplyResources(12, "rick", CultureInfo.InvariantCulture);
            mocks.VerifyAll();
        }
        public void ApplyResourcesWithNoParentMessageSource()
        {
            DelegatingMessageSource source = new DelegatingMessageSource();

            Assert.Throws <ApplicationContextException>(() => source.ApplyResources(12, "rick", CultureInfo.InvariantCulture));
        }