예제 #1
0
        public void XmlToCursorTests_IntStringArray_Test()
        {
            string[] customerIds = { "1", "2" };
            var      xmlToCursor = new ArrayXmlToCursor(customerIds);
            var      list        = northwind.List <Customer>().Where(customer => customerIds.Contains(customer.CustomerID)).ToList();

            Assert.AreEqual(typeof(string[]), xmlToCursor.ArrayType);
            Assert.AreEqual(typeof(string), xmlToCursor.ItemType);
            Assert.AreEqual(0, list.Count);
        }