Skip to content

Commit

Permalink
Add workaround test for Q72511
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown committed Apr 16, 2012
1 parent f2fa218 commit 25e577c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/XeroApi.VBTests/ApiQueryTests.vb
Original file line number Diff line number Diff line change
Expand Up @@ -95,17 +95,17 @@ Public Class ApiQueryTests

Dim sixMonthsAgo As DateTime = DateAdd(DateInterval.Month, -6, New DateTime(2012, 7, 15))

'Dim invs = repository.Invoices.Where(Function(i) i.Type = "ACCPAY").Where(Function(i) i.Date < sixMonthsAgo).ToList()
Dim invs = repository.Invoices.Where(Function(i) i.Type = "ACCPAY").Where(Function(i) i.Date < sixMonthsAgo).ToList()

Dim invs = From invoice In repository.Invoices
Where (invoice.Type = "ACCPAY") And (invoice.Date.Value > sixMonthsAgo)
'Dim invs = From invoice In repository.Invoices
' Where (invoice.Type = "ACCPAY") And (invoice.Date.Value > sixMonthsAgo)

invs.ToArray()

Dim linqQueryDescription As Linq.LinqQueryDescription = integrationProxy.LastQueryDescription

Assert.AreEqual("Invoice", linqQueryDescription.ElementName)
Assert.AreEqual("((Type == ""ACCPAY"") AND (Date < DateTime(2012,1,15)))", linqQueryDescription.Where)
Assert.AreEqual("(Type == ""ACCPAY"") AND (Date < DateTime(2012,1,15))", linqQueryDescription.Where)

End Sub

Expand Down

0 comments on commit 25e577c

Please sign in to comment.