Exemple #1
0
        public void Contains()
        {
            vCardSubpropertyCollection subs =
                new vCardSubpropertyCollection();

            subs.Add("NAME");

            Assert.IsTrue(
                subs.Contains("NAME"),
                "The collection should contain the specified subproperty.");

            Assert.IsTrue(
                subs.Contains("namE"),
                "Subproperty names are not case-sensitive.");

            Assert.IsFalse(
                subs.Contains((string)null),
                "The Contains method should not return True for null.");

            Assert.IsFalse(
                subs.Contains(string.Empty),
                "The Contains method should not return True for Empty.");

            Assert.IsFalse(
                subs.Contains("SOMENAME"),
                "There is no subproperty with the specified name.");
        }
Exemple #2
0
        public void Contains_Null()
        {
            vCardSubpropertyCollection subs = new vCardSubpropertyCollection();

            Assert.IsFalse(
                subs.Contains((string)null));
        }
Exemple #3
0
        public void Contains_Empty()
        {
            vCardSubpropertyCollection subs = new vCardSubpropertyCollection();

            Assert.IsFalse(
                subs.Contains(string.Empty));
        }
        public void Contains_Null()
        {

            vCardSubpropertyCollection subs = new vCardSubpropertyCollection();

            Assert.IsFalse(
                subs.Contains((string)null));

        }
        public void Contains_Empty()
        {

            vCardSubpropertyCollection subs = new vCardSubpropertyCollection();

            Assert.IsFalse(
                subs.Contains(string.Empty));

        }
        public void Contains()
        {

            vCardSubpropertyCollection subs = 
                new vCardSubpropertyCollection();

            subs.Add("NAME");

            Assert.IsTrue(
                subs.Contains("NAME"),
                "The collection should contain the specified subproperty.");

            Assert.IsTrue(
                subs.Contains("namE"),
                "Subproperty names are not case-sensitive.");

            Assert.IsFalse(
                subs.Contains((string)null),
                "The Contains method should not return True for null.");

            Assert.IsFalse(
                subs.Contains(string.Empty),
                "The Contains method should not return True for Empty.");

            Assert.IsFalse(
                subs.Contains("SOMENAME"),
                "There is no subproperty with the specified name.");

        }