Skip to content

Commit

Permalink
(GH-367) Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed Aug 9, 2024
1 parent 055209c commit 45b2138
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion Source/StrongGrid.UnitTests/Resources/ApiKeysTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public async Task GetAllAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down
4 changes: 2 additions & 2 deletions Source/StrongGrid.UnitTests/Resources/BlocksTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ public async Task GetAllAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(1);
result[0].Email.ShouldBe("[email protected]");
result.Records.Length.ShouldBe(1);
result.Records[0].Email.ShouldBe("[email protected]");
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task GetAllAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down
2 changes: 1 addition & 1 deletion Source/StrongGrid.UnitTests/Resources/IpAddressesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public async Task GetAllAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ public async Task GetAllDomainsAsync_include_subusers()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand All @@ -376,7 +376,7 @@ public async Task GetAllDomainsAsync_exclude_subusers()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down Expand Up @@ -649,7 +649,7 @@ public async Task GetAllReverseDnsAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down Expand Up @@ -981,7 +981,7 @@ public async Task GetAllLinksAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}
}
}
2 changes: 1 addition & 1 deletion Source/StrongGrid.UnitTests/Resources/SpamReportsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public async Task GetAllAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down
4 changes: 2 additions & 2 deletions Source/StrongGrid.UnitTests/Resources/TeammatesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ public async Task GetAllPendingInvitationsAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down Expand Up @@ -331,7 +331,7 @@ public async Task GetAllTeammatesAsync()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}

[Fact]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ public async Task GetAllInboundParseWebhookSettings()
mockHttp.VerifyNoOutstandingExpectation();
mockHttp.VerifyNoOutstandingRequest();
result.ShouldNotBeNull();
result.Length.ShouldBe(2);
result.Records.Length.ShouldBe(2);
}
}
}

0 comments on commit 45b2138

Please sign in to comment.