public void VfpFunctionsTests_AT_Test()
        {
            var result = this.GetOrderQuery().Select(x => VfpFunctions.At("I", x.ShipName)).First();

            Assert.AreEqual(0, result);
            result = this.GetOrderQuery().Select(x => VfpFunctions.At("i", x.ShipName)).First();
            Assert.AreEqual(2, result);
        }
Пример #2
0
        public void VfpFunctionsTests_AT_LongOccurance_Test() => Execute(context => {
            var result = GetOrderQuery(context).Select(x => VfpFunctions.At("I", x.ShipName, (long)2)).First();
            Assert.Equal(0, result);

            result = GetOrderQuery(context).Select(x => VfpFunctions.At("i", x.ShipName, (long)2)).First();

            Assert.Equal(23, result);
        });