From d0183e452a507c4fcb2b1786deec0fd4aa373798 Mon Sep 17 00:00:00 2001 From: "nicolas.barbosa" Date: Fri, 17 May 2024 19:28:39 +0200 Subject: [PATCH] mauvais code dans codevide ut --- Sources/UnitTesting/CodeVideExceptionUT.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Sources/UnitTesting/CodeVideExceptionUT.cs b/Sources/UnitTesting/CodeVideExceptionUT.cs index 0787a4b..2ad8544 100644 --- a/Sources/UnitTesting/CodeVideExceptionUT.cs +++ b/Sources/UnitTesting/CodeVideExceptionUT.cs @@ -55,10 +55,10 @@ namespace UnitTesting [Fact] public void ExceptionSerialisation() { - CodeIncompletException exception = new CodeIncompletException(); + CodeVideException exception = new CodeVideException(); #pragma warning disable SYSLIB0050 - SerializationInfo info = new SerializationInfo(typeof(CodeIncompletException), new FormatterConverter()); + SerializationInfo info = new SerializationInfo(typeof(CodeVideException), new FormatterConverter()); StreamingContext contexte = new StreamingContext(StreamingContextStates.All); #pragma warning restore SYSLIB0050 @@ -69,11 +69,11 @@ namespace UnitTesting Assert.Equal(exception.Message, info.GetString("Message")); #pragma warning disable SYSLIB0050 - CodeIncompletException exceptionSerialisee = - (CodeIncompletException)FormatterServices.GetUninitializedObject(typeof(CodeIncompletException)); + CodeVideException exceptionSerialisee = + (CodeVideException)FormatterServices.GetUninitializedObject(typeof(CodeVideException)); #pragma warning restore SYSLIB0050 - ConstructorInfo? constructeur = typeof(CodeIncompletException).GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic, null, [typeof(SerializationInfo), typeof(StreamingContext)], null); + ConstructorInfo? constructeur = typeof(CodeVideException).GetConstructor(BindingFlags.Instance | BindingFlags.NonPublic, null, [typeof(SerializationInfo), typeof(StreamingContext)], null); Assert.NotNull(constructeur); constructeur.Invoke(exceptionSerialisee, [info, contexte]);