Esempio n. 1
0
        public void ApplyResources()
        {
            MockMessageSource.ApplyResources(12, "rick", CultureInfo.InvariantCulture);
            DelegatingMessageSource source = new DelegatingMessageSource(MockMessageSource);

            source.ApplyResources(12, "rick", CultureInfo.InvariantCulture);
        }
 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 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 ApplyResources()
        {
            const string expectedName = "Rick Evans";

            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();

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

            Assert.Throws <ApplicationContextException>(() => source.ApplyResources(12, "rick", CultureInfo.InvariantCulture));
        }
 public void ApplyResourcesWithNoParentMessageSource()
 {
     DelegatingMessageSource source = new DelegatingMessageSource();
     source.ApplyResources(12, "rick", CultureInfo.InvariantCulture);
 }
		public void ApplyResourcesWithNoParentMessageSource()
		{
			DelegatingMessageSource source = new DelegatingMessageSource();
            Assert.Throws<ApplicationContextException>(() => source.ApplyResources(12, "rick", CultureInfo.InvariantCulture));
		}