Unit test Joueur
continuous-integration/drone/push Build is passing Details

pull/17/head
victor perez ngounou 3 years ago
parent b1e0be87e2
commit 2c3730618b

@ -21,5 +21,6 @@
<ItemGroup>
<ProjectReference Include="..\..\BowlingLib\BowlingLib.csproj" />
<ProjectReference Include="..\..\BowlingStub\BowlingStub.csproj" />
</ItemGroup>
</Project>

@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using BowlingLib.Model;
using Xunit;
@ -43,8 +44,14 @@ namespace Test.BowlingAppUnitTest
}
Joueur j = new Joueur(pseudo);
Assert.Equal(expectedPseudo, j.Pseudo);
}
//Test joueur avec stub
[Fact]
public void TestJoueurStub()
{
StubJoueur stub = new StubJoueur();
Assert.Equal(10, stub.ListJoueurs(10).Count);
}
}
}

Loading…
Cancel
Save