Skip to content

Commit

Permalink
feat: add ShouldNotEmitFiles test (#1843)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimothyMakkison authored Sep 27, 2024
1 parent 704ee4c commit a831dac
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Refit.GeneratorTests/GeneratedTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,11 @@ public Task ShouldEmitAllFiles()
Task<string> Get();
""", false);
}

[Fact]
public Task ShouldNotEmitFilesWhenNoRefitInterfaces()
{
// Refit should not generate any code when no valid Refit interfaces are present.
return Fixture.VerifyForBody("", false);
}
}

0 comments on commit a831dac

Please sign in to comment.