public void Ctor2()
        {
            ArrayList a = new ArrayList();

            a.Add(typeof(string));
            a.Add(typeof(object));

            CIC col1 = new CIC(a);

            a = new ArrayList();
            a.Add(typeof(int));
            a.Add(typeof(short));

            CIC col2 = new CIC(col1, a);

            Assert.AreEqual(4, col2.Count, "A1");
            Assert.IsTrue(col2.Contains(typeof(string)), "A2");
            Assert.IsTrue(col2.Contains(typeof(object)), "A3");
            Assert.IsTrue(col2.Contains(typeof(int)), "A4");
            Assert.IsTrue(col2.Contains(typeof(short)), "A5");
            Assert.AreEqual(0, col2.IndexOf(typeof(string)), "A6");
            Assert.AreEqual(1, col2.IndexOf(typeof(object)), "A7");
            Assert.AreEqual(2, col2.IndexOf(typeof(int)), "A8");
            Assert.AreEqual(3, col2.IndexOf(typeof(short)), "A9");
        }
コード例 #2
0
		public void Ctor1_dup ()
		{
			ArrayList a = new ArrayList ();

			a.Add (typeof (string));
			a.Add (typeof (string));

			CIC col = new CIC (a);

			Assert.AreEqual (2, col.Count, "A1");
			Assert.IsTrue   (col.Contains (typeof (string)), "A2");
			Assert.AreEqual (0, col.IndexOf (typeof (string)), "A3");
		}
        public void Ctor1_dup()
        {
            ArrayList a = new ArrayList();

            a.Add(typeof(string));
            a.Add(typeof(string));

            CIC col = new CIC(a);

            Assert.AreEqual(2, col.Count, "A1");
            Assert.IsTrue(col.Contains(typeof(string)), "A2");
            Assert.AreEqual(0, col.IndexOf(typeof(string)), "A3");
        }
        public void Ctor0()
        {
            CIC col = new CIC();

            Assert.AreEqual(0, col.Count, "A1");
        }
        public void Empty()
        {
            CIC col = CIC.Empty;

            Assert.AreEqual(0, col.Count, "A1");
        }
 public ConnectionInterfaceCollection(System.Web.UI.WebControls.WebParts.ConnectionInterfaceCollection existingConnectionInterfaces, System.Collections.ICollection connectionInterfaces)
 {
 }
コード例 #7
0
		public void Ctor2 ()
		{
			ArrayList a = new ArrayList ();

			a.Add (typeof (string));
			a.Add (typeof (object));

			CIC col1 = new CIC (a);

			a = new ArrayList ();
			a.Add (typeof (int));
			a.Add (typeof (short));

			CIC col2 = new CIC (col1, a);
			
			Assert.AreEqual (4, col2.Count, "A1");
			Assert.IsTrue   (col2.Contains (typeof (string)), "A2");
			Assert.IsTrue   (col2.Contains (typeof (object)), "A3");
			Assert.IsTrue   (col2.Contains (typeof (int)),    "A4");
			Assert.IsTrue   (col2.Contains (typeof (short)),  "A5");
			Assert.AreEqual (0, col2.IndexOf (typeof (string)), "A6");
			Assert.AreEqual (1, col2.IndexOf (typeof (object)), "A7");
			Assert.AreEqual (2, col2.IndexOf (typeof (int)),    "A8");
			Assert.AreEqual (3, col2.IndexOf (typeof (short)),  "A9");
		}
コード例 #8
0
		public void Ctor0 ()
		{
			CIC col = new CIC ();
			Assert.AreEqual (0, col.Count, "A1");
		}