Skip to content

Commit 213b429

Browse files
committed
Added operation tests
1 parent 98d54f7 commit 213b429

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
namespace HotChocolate.Types;
2+
3+
public class OperationTests
4+
{
5+
[Fact]
6+
public async Task Generate_Query_Resolvers()
7+
{
8+
await TestHelper.GetGeneratedSourceSnapshot(
9+
"""
10+
using HotChocolate;
11+
using HotChocolate.Types;
12+
13+
namespace TestNamespace;
14+
15+
[QueryType]
16+
public static partial class Query
17+
{
18+
public static int GetTest(string arg)
19+
{
20+
return arg.Length;
21+
}
22+
}
23+
""").MatchMarkdownAsync();
24+
}
25+
}

0 commit comments

Comments
 (0)