public async Task GenerateModel() { // arrange var sb = new StringBuilder(); var writer = new CodeWriter(sb); var generator = new InputModelGenerator(); var descriptor = new InputModelDescriptor( "Test", "Demo", new[] { new InputFieldDescriptor("Foo", "Bar") }); // act await generator.WriteAsync(writer, descriptor); // assert sb.ToString().MatchSnapshot(); }