tests: add tests for page info

This commit is contained in:
Stevan Freeborn
2025-05-30 17:27:23 -05:00
parent cbf7598227
commit 7a12f2768d
@@ -2,5 +2,28 @@ namespace StevesBot.Webhook.Tests.Unit;
public class YouTubePageInfoTests public class YouTubePageInfoTests
{ {
[Fact]
public void Constructor_WhenCalled_ItShouldReturnAnInstance()
{
var result = new YouTubePageInfo();
result.TotalResults.Should().Be(0);
result.ResultsPerPage.Should().Be(0);
}
[Fact]
public void Constructor_WhenCalledWithValues_ItShouldReturnAnInstance()
{
var total = 10;
var resultsPerPage = 1;
var result = new YouTubePageInfo()
{
TotalResults = total,
ResultsPerPage = resultsPerPage,
};
result.TotalResults.Should().Be(total);
result.ResultsPerPage.Should().Be(resultsPerPage);
}
} }