Skip to content

Commit

Permalink
fix: remove unused unit test method
Browse files Browse the repository at this point in the history
  • Loading branch information
osman-koc committed Mar 25, 2024
1 parent 4463cda commit 7e86f7e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,4 @@ public override IEnumerable<object[]> GetData(MethodInfo testMethod)
yield return new object[] { null, 10, 2 };
}
}

public class InValidToPagedListQueryableExtensions : DataAttribute
{
public override IEnumerable<object[]> GetData(MethodInfo testMethod)
{
var context = EFRepositoryFixture.CreateContext();
EFRepositoryFixture.CreateData(context, Guid.NewGuid(), Guid.NewGuid());

//data, pageNumber, pageSize
yield return new object[] { context.CarbonContextTestClass, -1, -1 };
yield return new object[] { null, -10, -2 };
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,5 @@ public void ToPagedListAsync_Successfully_PagedListExtensions(IQueryable<TEntity

_testOutputHelper.WriteLine("Test passed!");
}

[Theory]
[InValidToPagedListQueryableExtensions]
public void ToPagedListAsync_Exception_PagedListExtensions(IQueryable<TEntity> entity, int pageNumber, int pageSize)
{
// Arrange
// Act
var wrapper = new QueryableExtensionsWrapper<TEntity>();
var response = wrapper.ToPagedListAsync(entity, pageNumber, pageSize);
// Assert
Assert.NotNull(response.Exception);

_testOutputHelper.WriteLine("Test passed!");
}
}
}

0 comments on commit 7e86f7e

Please sign in to comment.