Exemple #1
0
        public void StaticResourceUserControls()
        {
            StaticResourceUserControls1 s1 = new StaticResourceUserControls1();

            Assert.IsNull(s1.Resources["localNameForUserControl4"], "1");
            Assert.IsNotNull(s1.Resources["foo"], "2");

            StaticResourceUserControls2 s2 = new StaticResourceUserControls2();

            Assert.IsNotNull(s2.Resources["localNameForUserControl4"], "3");
        }
Exemple #2
0
		public void StaticResourceUserControls ()
		{
			StaticResourceUserControls1 s1 = new StaticResourceUserControls1();

			Assert.IsNull (s1.Resources["localNameForUserControl4"], "1");
			Assert.IsNotNull (s1.Resources["foo"], "2");

			StaticResourceUserControls2 s2 = new StaticResourceUserControls2();

			Assert.IsNotNull (s2.Resources["localNameForUserControl4"], "3");
		}