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:
@@ -19,7 +19,8 @@ public class NewMatchCommandTest
|
||||
[Fact]
|
||||
public void CreateBasicMatch()
|
||||
{
|
||||
NewMatchCommand command = new NewMatchCommand(_repo);
|
||||
Random random = new Random(1);
|
||||
NewMatchCommand command = new NewMatchCommand(_repo) { Random = random };
|
||||
NewMatchResult result = command.Execute();
|
||||
Assert.True(result.Success);
|
||||
}
|
||||
@@ -27,12 +28,13 @@ public class NewMatchCommandTest
|
||||
[Fact]
|
||||
public void TwoNewMatchShouldHaveDifferentID()
|
||||
{
|
||||
NewMatchCommand command = new NewMatchCommand(_repo);
|
||||
Random random = new Random(1);
|
||||
NewMatchCommand command = new NewMatchCommand(_repo) { Random = random };
|
||||
NewMatchResult result = command.Execute();
|
||||
Assert.True(result.Success);
|
||||
Assert.NotNull(result.Match);
|
||||
|
||||
NewMatchCommand command2 = new NewMatchCommand(_repo);
|
||||
NewMatchCommand command2 = new NewMatchCommand(_repo) { Random = random };
|
||||
NewMatchResult result2 = command2.Execute();
|
||||
Assert.True(result2.Success);
|
||||
Assert.NotNull(result2.Match);
|
||||
|
||||
Reference in New Issue
Block a user