public void Instantiate_ExtendArgsNative_NativeExtendEngine() { var factory = new ExtensionFactory(null, new Context(null)); var extender = factory.Instantiate(new ExtendArgs( new ColumnOrdinalIdentifier(1), "[A] | dateTime-to-date | dateTime-to-add(00:15:00, [B])", LanguageType.Native )); Assert.That(extender, Is.Not.Null); Assert.That(extender, Is.TypeOf <NativeExtendEngine>()); }
public void Instantiate_ExtendArgsNCalc_NCalcExtendEngine() { var factory = new ExtensionFactory(null, new Context(null)); var extender = factory.Instantiate(new ExtendArgs( new ColumnOrdinalIdentifier(1), "a+b*c", LanguageType.NCalc )); Assert.That(extender, Is.Not.Null); Assert.That(extender, Is.TypeOf <NCalcExtendEngine>()); }