public void VfpFunctionsTests_Sign_Long_Test() { var result = this.GetOrderQuery().Select(x => VfpFunctions.Sign((long)0)).First(); Assert.AreEqual(0, result); }
public void VfpFunctionsTests_Sign_Double_Test() { var result = this.GetOrderQuery().Select(x => VfpFunctions.Sign((double)-99)).First(); Assert.AreEqual(-1, result); }
public void VfpFunctionsTests_Sign_Decimal_Test() { var result = this.GetOrderQuery().Select(x => VfpFunctions.Sign((decimal)99)).First(); Assert.AreEqual(1, result); }
public void VfpFunctionsTests_Sign_Test() => Execute(context => { var result = GetOrderQuery(context).Select(x => VfpFunctions.Sign((decimal)x.EmployeeId + 94)).First(); Assert.Equal(1, result); });