Skip to content

Commit

Permalink
migrate tests to .net7
Browse files Browse the repository at this point in the history
  • Loading branch information
m-khrapunov committed Jun 29, 2023
1 parent 209d253 commit 4b4dd2d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/NPokerEngine.Tests/NPokerEngine.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>disable</Nullable>

Expand Down
2 changes: 1 addition & 1 deletion src/NPokerEngine/Types/Player.cs
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public ActionHistoryEntry BlindHistory(bool smallBlind, float sbAmount)

public ActionHistoryEntry AnteHistory(float payAmount)
{
Debug.Assert(payAmount > 0);
if (payAmount <= 0) throw new Exception($"Ante can be 0");
return new ActionHistoryEntry
{
ActionType = ActionType.ANTE,
Expand Down

0 comments on commit 4b4dd2d

Please sign in to comment.