diff --git a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgConversionIntegrationTests.cs b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgConversionIntegrationTests.cs index 6aa9b5c5..dadd7941 100644 --- a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgConversionIntegrationTests.cs +++ b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgConversionIntegrationTests.cs @@ -57,7 +57,8 @@ public void TryAutomateSvgConversion_WithValidMmFile_ShouldReturnTrueAndCreateSv // Act var method = typeof(FallacyMindMapDocumentConfig).GetMethod("TryAutomateSvgConversion", BindingFlags.NonPublic | BindingFlags.Instance, null, new[] { typeof(string), typeof(string), typeof(AssetConverterConfig), typeof(bool) }, null); - var result = (bool)method.Invoke(_generator, new object[] { mmPath, svgPath, _config, false }); + Assert.NotNull(method); + var result = (bool)method!.Invoke(_generator, new object[] { mmPath, svgPath, _config, false })!; // Assert Assert.True(result, "L'exécution du processus de conversion SVG doit réussir."); diff --git a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgDisambiguationContractTests.cs b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgDisambiguationContractTests.cs index 7f77600b..0e6ece4e 100644 --- a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgDisambiguationContractTests.cs +++ b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgDisambiguationContractTests.cs @@ -34,7 +34,7 @@ public class SvgDisambiguationContractTests private static readonly XNamespace Svg = "http://www.w3.org/2000/svg"; // Minimal with one child — the shape CollectPossibleSvgNodes scans for. - private static XElement G(string text, string id = null) + private static XElement G(string text, string? id = null) { var g = new XElement(Svg + "g"); if (id != null) g.SetAttributeValue("id", id); diff --git a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgPostProcessingTests.cs b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgPostProcessingTests.cs index 6985c44d..4640c857 100644 --- a/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgPostProcessingTests.cs +++ b/Generation/Converters/Argumentum.AssetConverter.Tests/MindmapGeneration/SvgPostProcessingTests.cs @@ -30,7 +30,7 @@ public async Task ProcessSvgFilesAsync_WithSimpleSvg_ShouldMatchApprovedSnapshot var processedSvgContent = FallacyMindMapDocumentConfig.GetSvgContent(processedSvgDocs.Values.First()); // Assert - var snapshotDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "snapshots"); + var snapshotDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!, "snapshots"); var snapshotFile = Path.Combine(snapshotDirectory, "sample_fallacy_map.snapshot.svg"); // Auto-generate snapshot if it doesn't exist (first run)