MsAccessQueryTests.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System;
  2. using System.Threading.Tasks;
  3. using Shouldly;
  4. using Xunit;
  5. namespace PetaPoco.Tests.Integration.Databases.MSAccess
  6. {
  7. [Collection("MSAccess")]
  8. public class MsAccessQueryTests : BaseQueryTests
  9. {
  10. public MsAccessQueryTests()
  11. : base(new MsAccessDBTestProvider())
  12. {
  13. }
  14. public override void Page_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection()
  15. {
  16. Should.Throw<NotSupportedException>(() => base.Page_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection());
  17. }
  18. public override void Page_ForPocoSqlWithOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection()
  19. {
  20. Should.Throw<NotSupportedException>(() => base.Page_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection());
  21. }
  22. public override Task PageAsync_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection()
  23. {
  24. Should.Throw<NotSupportedException>(() => base.PageAsync_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection().Wait());
  25. return Task.CompletedTask;
  26. }
  27. public override Task PageAsync_ForPocoSqlWithOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection()
  28. {
  29. Should.Throw<NotSupportedException>(() => base.PageAsync_ForPocoGivenSqlWithoutOrderByParameterPageItemAndPerPage_ShouldReturnValidPocoCollection().Wait());
  30. return Task.CompletedTask;
  31. }
  32. }
  33. }