diff --git a/Refit.GeneratorTests/GeneratedTest.cs b/Refit.GeneratorTests/GeneratedTest.cs index b75ce1571..e233fadfe 100644 --- a/Refit.GeneratorTests/GeneratedTest.cs +++ b/Refit.GeneratorTests/GeneratedTest.cs @@ -11,4 +11,11 @@ public Task ShouldEmitAllFiles() Task Get(); """, false); } + + [Fact] + public Task ShouldNotEmitFilesWhenNoRefitInterfaces() + { + // Refit should not generate any code when no valid Refit interfaces are present. + return Fixture.VerifyForBody("", false); + } }