diff --git a/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs b/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs index af34ecf..7a07825 100644 --- a/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs +++ b/PiwigoDotnet/Piwigo.Client.Tests/SessionApiTests.cs @@ -18,6 +18,7 @@ public class SessionApiTests : ApiTestsBase public async Task Login_should_set_cookies_and_session() { await LoginAsync(); + CorrectMethodShouldGetCalled("pwg.session.login"); } [Test] @@ -39,6 +40,7 @@ public class SessionApiTests : ApiTestsBase status.Should().NotBeNull(); status.Username.Should().Be("admin"); + CorrectMethodShouldGetCalled("pwg.session.getStatus"); } [Test] @@ -50,6 +52,7 @@ public class SessionApiTests : ApiTestsBase await _sessionApi.LogoutAsync(); Context.IsLoggedIn.Should().BeFalse(); + CorrectMethodShouldGetCalled("pwg.session.logout"); } private async Task LoginAsync()