Documentation des exceptions

master
Pauline PRADY 1 year ago
parent 286b8412e7
commit a3161bd3e4

@ -7,14 +7,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception CodeCompletException.
/// </summary>
public class CodeCompletExceptionUT
{
/// <summary>
/// Test de l'exception CodeCompletException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<CodeCompletException>(() => throw new CodeCompletException());
}
/// <summary>
/// Test du message de l'exception CodeCompletException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -32,6 +41,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception CodeCompletException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -54,6 +66,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'exception CodeCompletException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception CodeIncompletException.
/// </summary>
public class CodeIncompletExceptionUT
{
/// <summary>
/// Test de l'exception CodeIncompletException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<CodeIncompletException>(() => throw new CodeIncompletException());
}
/// <summary>
/// Test du message de l'exception CodeIncompletException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -30,6 +39,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception CodeIncompletException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -52,6 +64,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'exception CodeIncompletException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception CodeInvalideException.
/// </summary>
public class CodeInvalideExceptionUT
{
/// <summary>
/// Test de l'exception CodeInvalideException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<CodeInvalideException>(() => throw new CodeInvalideException());
}
/// <summary>
/// Test des attributs de l'exception CodeInvalideException.
/// </summary>
[Fact]
public void ExceptionAttributs()
{
@ -29,6 +38,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test du message de l'exception CodeInvalideException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -46,6 +58,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception CodeInvalideException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -68,6 +83,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'exception CodeInvalideException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception CodeVideException.
/// </summary>
public class CodeVideExceptionUT
{
/// <summary>
/// Test de l'exception CodeVideException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<CodeVideException>(() => throw new CodeVideException());
}
/// <summary>
/// Test du message de l'exception CodeVideException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -30,6 +39,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception CodeVideException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -52,6 +64,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'exception CodeVideException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception GrilleCompleteException.
/// </summary>
public class GrilleCompleteExceptionUT
{
/// <summary>
/// Test de l'exception GrilleCompleteException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<GrilleCompleteException>(() => throw new GrilleCompleteException());
}
/// <summary>
/// Test du message de l'exception GrilleCompleteException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -30,6 +39,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception GrilleCompleteException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -52,6 +64,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'evenement GrilleCompleteException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception IndiceCodeException.
/// </summary>
public class IndiceCodeExceptionUT
{
/// <summary>
/// Test de l'exception IndiceCodeException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<IndiceCodeException>(() => throw new IndiceCodeException());
}
/// <summary>
/// Test des attributs de l'exception IndiceCodeException.
/// </summary>
[Fact]
public void ExceptionAttributs()
{
@ -29,6 +38,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test du message de l'exception IndiceCodeException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -46,6 +58,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception IndiceCodeException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -68,6 +83,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serialisation de l'evenement IndiceCodeException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception JoueurDejaPresentException.
/// </summary>
public class JoueurDejaPresentExceptionUT
{
/// <summary>
/// Test de l'exception JoueurDejaPresentException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<JoueurDejaPresentException>(() => throw new JoueurDejaPresentException());
}
/// <summary>
/// Test du message de l'exception JoueurDejaPresentException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -30,6 +39,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception JoueurDejaPresentException et ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -52,6 +64,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serilisation de l'exception JoueurDejaPresentException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test pour l'exception NomJoueurInterditException.
/// </summary>
public class NomJoueurInterditExceptionUT
{
/// <summary>
/// Test de l'exception NomJoueurInterditException par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<NomJoueurInterditException>(() => throw new NomJoueurInterditException());
}
/// <summary>
/// Test du message de l'exception NomJoueurInterditException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -30,6 +39,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de l'exception NomJoueurInterditException et de ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -52,6 +64,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test de la serilisation de l'exception NomJoueurInterditException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception TailleCodeException.
/// </summary>
public class TailleCodeExceptionUT
{
/// <summary>
/// Test l'exception par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<TailleCodeException>(() => throw new TailleCodeException());
}
/// <summary>
/// Test les attributs de l'exception.
/// </summary>
[Fact]
public void ExceptionAttributs()
{
@ -28,6 +37,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test le message de l'exception TailleCodeException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -45,6 +57,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test l'exception TailleCodeException et ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -67,6 +82,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test la serialisation de l'exception TailleCodeException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

@ -5,14 +5,23 @@ using Xunit;
namespace UnitTesting
{
/// <summary>
/// Classe de test de l'exception TailleGrille.
/// </summary>
public class TailleGrilleExceptionUT
{
/// <summary>
/// Test l'exception par defaut.
/// </summary>
[Fact]
public void ExceptionDefaut()
{
Assert.ThrowsAsync<TailleGrilleException>(() => throw new TailleGrilleException());
}
/// <summary>
/// Test l'exception avec ces attributs.
/// </summary>
[Fact]
public void ExceptionAttributs()
{
@ -28,6 +37,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test l'affichage du message de l'exception TailleGrilleException.
/// </summary>
[Fact]
public void ExceptionMessage()
{
@ -45,6 +57,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test l'exception TailleGrilleException et ses messages.
/// </summary>
[Fact]
public void ExceptionMessageEtException()
{
@ -67,6 +82,9 @@ namespace UnitTesting
}
}
/// <summary>
/// Test la serialisation de l'exception TailleGrilleException.
/// </summary>
[Fact]
public void ExceptionSerialisation()
{

Loading…
Cancel
Save