From 7a12f2768d1333f2a43989f0474378eb2b51f806 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Fri, 30 May 2025 17:27:23 -0500 Subject: [PATCH] tests: add tests for page info --- .../Unit/YouTubePageInfoTests.cs | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/src/tests/StevesBot.Webhook.Tests/Unit/YouTubePageInfoTests.cs b/src/tests/StevesBot.Webhook.Tests/Unit/YouTubePageInfoTests.cs index 10ea56c..5bf628f 100644 --- a/src/tests/StevesBot.Webhook.Tests/Unit/YouTubePageInfoTests.cs +++ b/src/tests/StevesBot.Webhook.Tests/Unit/YouTubePageInfoTests.cs @@ -2,5 +2,28 @@ namespace StevesBot.Webhook.Tests.Unit; 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); + } } \ No newline at end of file