private void Issue395Method <TNode>(IGraphClient client, TNode node) where TNode : INode { var text = new CypherFluentQuery(client) .Where((FooNode n) => n.Id == node.Id) .Query.DebugQueryText; text.Should().Be("WHERE (n.Id = 2)"); }