Пример #1
0
		public void Add_duplicate ()
		{
			ProviderCollection col = new ProviderCollection();
			TestProvider provider;

			provider = new TestProvider();
			provider.Initialize ("test", null);


			col.Add (provider);
			col.Add (provider);
		}
Пример #2
0
        public void Add_duplicate()
        {
            ProviderCollection col = new ProviderCollection();
            TestProvider       provider;

            provider = new TestProvider();
            provider.Initialize("test", null);


            col.Add(provider);
            col.Add(provider);
        }
Пример #3
0
        public void Get_nonexistant()
        {
            ProviderCollection col = new ProviderCollection();
            TestProvider       provider;

            provider = new TestProvider();
            provider.Initialize("test", null);


            col.Add(provider);

            Assert.AreEqual(provider, col["test"], "A1");
            Assert.IsNull(col["test2"], "A2");
        }
Пример #4
0
		public void Get_nonexistant ()
		{
			ProviderCollection col = new ProviderCollection();
			TestProvider provider;

			provider = new TestProvider();
			provider.Initialize ("test", null);


			col.Add (provider);

			Assert.AreEqual (provider, col["test"], "A1");
			Assert.IsNull (col["test2"], "A2");
		}