Skip to content

Commit

Permalink
Refactor unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tparviainen committed Dec 23, 2023
1 parent fef79ff commit 105eb97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ClashOfClans.Tests.Unit/ExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@

namespace ClashOfClans.Models
{
internal class NullableTypes
internal sealed class NullableTypes
{
public Role? NullableRole { get; set; }
public Player? NullablePlayer { get; set; }
public int? NullableTrophies { get; set; }
}

internal class NonnullableTypes
internal sealed class NonnullableTypes
{
private Role? _nonnullableRole;
private int? _nonnullableTrophies;
Expand Down
2 changes: 1 addition & 1 deletion src/ClashOfClans.Tests.Unit/TokenValidatorTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public void ValidTokensPassValidation()
{
TokenValidator.Validate(tokens);
}
catch (Exception)
catch (ArgumentException)
{
// Assert
Assert.Fail("No exception expected!");
Expand Down

0 comments on commit 105eb97

Please sign in to comment.