public void QSETExamplesTest01() { // create a new intersection set expression // (difference of 2 intervals is intersected with a third interval) QSI <INT> setExpression = QSI <INT> .CreateQSI ( // creates the set expression by differentiating two intervals new QSD <INT>( new IVL <INT>(1, 10) { LowClosed = true, HighClosed = true }, new IVL <INT>(5, 8) { LowClosed = true, HighClosed = true } ), // third interval new IVL <INT>(2, 7) { LowClosed = true, HighClosed = true } ); setExpression.NullFlavor = null; Assert.IsTrue(setExpression.Validate()); }
public void QSETExamplesTest04() { QSI <INT> setExpression = new QSI <INT>(); setExpression.NullFlavor = NullFlavor.Other; Assert.IsTrue(setExpression.Validate()); }
public void QSETExamplesTest03() { QSI <INT> setExpression = new QSI <INT>(); setExpression.NullFlavor = null; Assert.IsFalse(setExpression.Validate()); }
public void QSETExamplesTest02() { QSI <INT> setExpression = QSI <INT> .CreateQSI ( new QSD <INT>( new IVL <INT>(1, 10) { LowClosed = true, HighClosed = true }, new IVL <INT>(5, 8) { LowClosed = true, HighClosed = true } ), new IVL <INT>(2, 7) { LowClosed = true, HighClosed = true } ); setExpression.NullFlavor = NullFlavor.Other; Assert.IsFalse(setExpression.Validate()); }
public void QSETExamplesTest04() { QSI<INT> setExpression = new QSI<INT>(); setExpression.NullFlavor = NullFlavor.Other; Assert.IsTrue(setExpression.Validate()); }
public void QSETExamplesTest03() { QSI<INT> setExpression = new QSI<INT>(); setExpression.NullFlavor = null; Assert.IsFalse(setExpression.Validate()); }