MySql.Data.Entity.Tests.CanonicalFunctions.CanRoundToNonZeroDigits C# (CSharp) Method

CanRoundToNonZeroDigits() private method

private CanRoundToNonZeroDigits ( ) : void
return void
    public void CanRoundToNonZeroDigits()
    {

      using (testEntities context = new testEntities())
      {
        DbDataRecord order = context.CreateQuery<DbDataRecord>(@"
                                        SELECT o.Id, o.Freight, 
                                        Round(o.Freight, 2) AS [Rounded Freight]
                                        FROM Orders AS o WHERE o.Id=10").First();

        Assert.AreEqual(350.54721, order[1]);
        Assert.AreEqual(350.55, order[2]);
      }
    }
#endif