public void prints_directive() { var printer = new SchemaPrinter(null); var arg = DirectiveGraphType.Skip.Arguments.First(); arg.ResolvedType = arg.Type.BuildNamedType(); var result = printer.PrintDirective(DirectiveGraphType.Skip); const string expected = @"# Directs the executor to skip this field or fragment when the 'if' argument is true. directive @skip( if: Boolean! ) on FIELD | FRAGMENT_SPREAD | INLINE_FRAGMENT"; AssertEqual(result, "directive", expected, excludeScalars: true); }