Ejemplo n.º 1
0
        public void ItemsNotNullFailMsg()
        {
            ArrayList al = new ArrayList();

            al.Add("x");
            al.Add(null);
            al.Add("z");

            OldCollectionAssert.AllItemsAreNotNull(al, "test");
        }
Ejemplo n.º 2
0
        public void ItemsNotNull()
        {
            ArrayList al = new ArrayList();

            al.Add("x");
            al.Add("y");
            al.Add("z");

            OldCollectionAssert.AllItemsAreNotNull(al);
            OldCollectionAssert.AllItemsAreNotNull(al, "test");
            OldCollectionAssert.AllItemsAreNotNull(al, "test {0}", "1");

            al = new ArrayList();
            al.Add(new DataSet());
            al.Add(new DataSet());
            al.Add(new DataSet());

            OldCollectionAssert.AllItemsAreNotNull(al);
            OldCollectionAssert.AllItemsAreNotNull(al, "test");
            OldCollectionAssert.AllItemsAreNotNull(al, "test {0}", "1");
        }