From c6f1da9582b0e835ee8ec9ac4bb467523cbfc6a8 Mon Sep 17 00:00:00 2001 From: Christian Sauer Date: Tue, 13 Feb 2024 07:51:15 +0100 Subject: [PATCH] fix tests --- AutomaticInterface/Tests/GeneratorTests.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/AutomaticInterface/Tests/GeneratorTests.cs b/AutomaticInterface/Tests/GeneratorTests.cs index 21da44b..f528adb 100644 --- a/AutomaticInterface/Tests/GeneratorTests.cs +++ b/AutomaticInterface/Tests/GeneratorTests.cs @@ -1626,6 +1626,7 @@ class DemoClass // //-------------------------------------------------------------------------------------------------- + #nullable enable using System.CodeDom.Compiler; using AutomaticInterfaceAttribute; using System; @@ -1643,6 +1644,7 @@ public partial interface IDemoClass } } + #nullable restore """; GenerateCode(code).Should().Be(expected); @@ -1742,6 +1744,7 @@ class DemoClass // //-------------------------------------------------------------------------------------------------- + #nullable enable using System.CodeDom.Compiler; using AutomaticInterfaceAttribute; using System; @@ -1759,6 +1762,7 @@ public partial interface IDemoClass } } + #nullable restore """; GenerateCode(code).Should().Be(expected);