You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
559 B
26 lines
559 B
using CoreLibrary.Manager;
|
|
using Xunit;
|
|
|
|
namespace UnitTesting
|
|
{
|
|
public class ManagerUT
|
|
{
|
|
[Fact]
|
|
public void TestConstruteur()
|
|
{
|
|
Manager manager = new Manager(new Stub());
|
|
Assert.NotNull(manager.Joueurs);
|
|
Assert.NotEmpty(manager.Joueurs);
|
|
}
|
|
|
|
[Fact]
|
|
public void TestDispose()
|
|
{
|
|
Stub stub = new Stub();
|
|
Manager manager = new Manager(stub);
|
|
manager.Dispose();
|
|
Assert.True(stub.EstEnregistre);
|
|
}
|
|
}
|
|
}
|