public void VfpFunctionsTests_IsDigit_True_Test()
        {
            var result = this.GetOrderQuery().Select(x => VfpFunctions.IsDigit("1")).First();

            Assert.AreEqual(true, result);
            result = this.GetOrderQuery().Select(x => VfpFunctions.IsDigit("A")).First();
            Assert.AreEqual(false, result);
        }
Beispiel #2
0
        public void VfpFunctionsTests_IsDigit_True_Test() => Execute(context => {
            var result = GetOrderQuery(context).Select(x => VfpFunctions.IsDigit(x.ShipAddress.Substring(0, 1))).First();

            Assert.Equal(true, result);

            result = GetOrderQuery(context).Select(x => VfpFunctions.IsDigit(x.ShipCountry.Substring(0, 1))).First();

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