public void ShouldAddFieldWithNameAsPascalCase(string fieldName)
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithField(fieldName);

            Assert.Equal("someContentType { someField }", builder.Build());
        }
        public void ShouldbeAbleToAddNestedFieldsMultipleLevelsDeep()
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithField("field");
            builder.WithNestedField("nestedField").WithNestedField("nestednestedField").WithField("nestedChild");

            Assert.Equal("someContentType { field nestedField { nestednestedField { nestedChild } } }", builder.Build());
        }
        public void ShouldbeAbleToCombineNonNestedAndNestedFields()
        {
            var builder = new ContentTypeQueryResourceBuilder("someContentType");

            builder.WithField("field");
            builder.WithNestedField("nestedField").WithField("nestedChild");

            Assert.Equal("someContentType { field nestedField { nestedChild } }", builder.Build());
        }