Пример #1
0
        public void RetrieveNumberAsMultipleTypes()
        {
            DataValueCollection <string> collection = new DataValueCollection <string>();

            collection.Set("Number", 100);

            Assert.AreEqual(100, collection.RetrieveInt16("Number"));
            Assert.AreEqual(100, collection.RetrieveInt32("Number"));
            Assert.AreEqual(100, collection.RetrieveInt64("Number"));
            Assert.AreEqual(100, collection.RetrieveDouble("Number"));
            Assert.AreEqual(100, collection.RetrieveDecimal("Number"));
            Assert.AreEqual("100", collection.RetrieveString("Number"));
        }