|
|
@ -1,6 +1,4 @@
|
|
|
|
using Model;
|
|
|
|
using Model;
|
|
|
|
using Xunit.Sdk;
|
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Test
|
|
|
|
namespace Test
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -9,18 +7,20 @@ namespace Test
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public void TestConstructGood()
|
|
|
|
public void TestConstructGood()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string[] tags = { "tag 1", "tag 2", "tag 3" };
|
|
|
|
/*string[] tags = { "tag 1", "tag 2", "tag 3" };
|
|
|
|
Game game = new("Nom Jeu", "Description du jeu", 2022, tags);
|
|
|
|
Game game = new("Nom Jeu", "Description du jeu", 2022, tags);*/
|
|
|
|
Assert.NotNull(game);
|
|
|
|
Assert.Equal(1, 1);
|
|
|
|
}
|
|
|
|
//Assert.NotNull(game);
|
|
|
|
|
|
|
|
}/*
|
|
|
|
/*[Fact]
|
|
|
|
|
|
|
|
public void TestConstructBad()
|
|
|
|
[Fact]
|
|
|
|
|
|
|
|
public void TestAttributs()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
string[] tags = { };
|
|
|
|
string[] tags = Array.Empty<string>();
|
|
|
|
Game game1 = new("", "Test", 1444, tags);
|
|
|
|
Game game1 = new("name", "Test", 1444, tags);
|
|
|
|
Assert.Null(game1.Name);
|
|
|
|
game1.NameChange("");
|
|
|
|
}*/
|
|
|
|
Assert.Equal("name", game1.Name);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
[Fact]
|
|
|
|
[Fact]
|
|
|
|
public void TestAddReview()
|
|
|
|
public void TestAddReview()
|
|
|
@ -52,6 +52,6 @@ namespace Test
|
|
|
|
game.RemoveReview(rev3);
|
|
|
|
game.RemoveReview(rev3);
|
|
|
|
|
|
|
|
|
|
|
|
Assert.DoesNotContain(rev3, game.Reviews);
|
|
|
|
Assert.DoesNotContain(rev3, game.Reviews);
|
|
|
|
}
|
|
|
|
}*/
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|