Ejemplo n.º 1
0
        public void RowAttributeNumberConversion()
        {
            RowAttribute ra = new RowAttribute("25.5", "2006.32323", "90.2323289329329832");

            object[] row = ra.GetRow(GetParametersForMethod("RowAttributeNumberConversionParameters"));
            Assert.AreEqual(row[0], 25.5f);
            Assert.AreEqual(row[1], 2006.32323d);
            Assert.AreEqual(row[2], 90.2323289329329832m);
        }
Ejemplo n.º 2
0
        public void RowAttributeDateTimeConversion(string dateString, int year, int month, int day,
                                                   int hour, int minute, int second)
        {
            RowAttribute ra = new RowAttribute(dateString);

            object[] row = ra.GetRow(GetParametersForMethod("RowAttributeDateTimeConversionParameters"));
            DateTime dt  = (DateTime)row[0];

            AssertDateTimeValues(dt, year, month, day, hour, minute, second);
        }