public void QSSToSXPRTest03() { // A QSS of times that shift by month each year QSS <TS> times = new QSS <TS>(); times.NullFlavor = NullFlavor.Other; var times2 = times.TranslateToSXPR(); Console.WriteLine(times2.ToString()); Assert.IsTrue(times2.Validate()); }
public void QSSToSXPRTest04() { // 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 = NullFlavor.Other; Console.WriteLine(times2.ToString()); Assert.IsFalse(times2.Validate()); }
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()); }
public void QSSToSXPRTest03() { // A QSS of times that shift by month each year QSS<TS> times = new QSS<TS>(); times.NullFlavor = NullFlavor.Other; var times2 = times.TranslateToSXPR(); Console.WriteLine(times2.ToString()); Assert.IsTrue(times2.Validate()); }