parent
4729656fd0
commit
8143a09c4e
@ -0,0 +1,29 @@
|
|||||||
|
namespace Tests;
|
||||||
|
using Models;
|
||||||
|
|
||||||
|
public class PlayerTest
|
||||||
|
{
|
||||||
|
[Fact]
|
||||||
|
public void PlayerConstructorTest()
|
||||||
|
{
|
||||||
|
Player player = new Player();
|
||||||
|
Assert.NotNull(player);
|
||||||
|
Assert.Equal("Player", player.Pseudo);
|
||||||
|
Assert.Equal("DefaultProfilePicture", player.ProfilePicture);
|
||||||
|
|
||||||
|
Player player2 = new Player("John Doe", "N/A.png");
|
||||||
|
Assert.Equal("John Doe", player2.Pseudo);
|
||||||
|
Assert.Equal("N/A.png", player2.ProfilePicture);
|
||||||
|
}
|
||||||
|
|
||||||
|
[Fact]
|
||||||
|
public void PlayerIsEqualTest()
|
||||||
|
{
|
||||||
|
Player player = new Player("John");
|
||||||
|
Player player2 = new Player("John","N/A");
|
||||||
|
Player player3 = new Player("Inconnu","N/A");
|
||||||
|
|
||||||
|
Assert.Equal(player, player2);
|
||||||
|
Assert.NotEqual(player, player3);
|
||||||
|
}
|
||||||
|
}
|
@ -1,9 +0,0 @@
|
|||||||
namespace Tests;
|
|
||||||
|
|
||||||
public class UnitTest1
|
|
||||||
{
|
|
||||||
[Fact]
|
|
||||||
public void Test1()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue