fin de l'initialisation d'un match et ajout du random aux commandes
All checks were successful
check main state / build (9.0.x) (push) Successful in 2m46s
All checks were successful
check main state / build (9.0.x) (push) Successful in 2m46s
This commit was merged in pull request #29.
This commit is contained in:
@@ -21,10 +21,13 @@ public class GetMatchCommandTest
|
||||
[Fact]
|
||||
public void GetMatchNotExisting()
|
||||
{
|
||||
Random random = new Random(1);
|
||||
GetMatchCommand command = new GetMatchCommand(_repo)
|
||||
{
|
||||
MatchId = 2
|
||||
MatchId = 2,
|
||||
Random = random
|
||||
};
|
||||
|
||||
GetMatchResult result = command.Execute();
|
||||
Assert.False(result.Success);
|
||||
Assert.Null(result.Match);
|
||||
@@ -33,9 +36,11 @@ public class GetMatchCommandTest
|
||||
[Fact]
|
||||
public void GetMatchSimple()
|
||||
{
|
||||
Random random = new Random(1);
|
||||
GetMatchCommand command = new GetMatchCommand(_repo)
|
||||
{
|
||||
MatchId = 1
|
||||
MatchId = 1,
|
||||
Random = random
|
||||
};
|
||||
GetMatchResult result = command.Execute();
|
||||
Assert.True(result.Success);
|
||||
|
||||
Reference in New Issue
Block a user