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.
27 lines
616 B
27 lines
616 B
using notre_bibliotheque;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
using Xunit;
|
|
|
|
namespace tests_unitaires
|
|
{
|
|
public class ParadigmeUnitTest
|
|
{
|
|
[Fact]
|
|
public void TestConstructeur()
|
|
{
|
|
Paradigme p = new Paradigme("Imperatif");
|
|
Assert.Equal("Imperatif", p.Nom);
|
|
|
|
}
|
|
|
|
[Fact]
|
|
public void TestExists()
|
|
{
|
|
Assert.True(Paradigme.IsParadigmeExists("Objet"));
|
|
Assert.False(Paradigme.IsParadigmeExists("Paradigme qui n'existe pas"));
|
|
}
|
|
}
|
|
}
|