Пример #1
0
        public void QSSToSXPRTest05()
        {
            // A QSS of times that shift by month each year
            QSS <TS> times = QSS <TS> .CreateQSS(
                new TS(new DateTime(2008, 01, 01), DatePrecision.Month),
                new TS(new DateTime(2009, 02, 01), DatePrecision.Month),
                new TS(new DateTime(2010, 03, 01), DatePrecision.Month)
                );

            var times2 = times.TranslateToSXPR();

            times2.NullFlavor = null;

            Console.WriteLine("Times Type: {0}", times.GetType().Name.ToString());
            Console.WriteLine("Times2 Type: {0}", times2.GetType().Name.ToString());
            Assert.AreNotEqual(times.GetType(), times2.GetType());
        }