public void When_schema_has_default_value_of_enum_it_is_generated_in_CSharp_and_TypeScript_correctly()
        {
            //// Arrange
            var csharpSettings = new CSharpGeneratorSettings {
                EnumNameGenerator = new MyEnumNameGenerator(), Namespace = "Ns"
            };
            var csharpGenerator = new CSharpDefaultValueGenerator(new CSharpTypeResolver(csharpSettings, new object()), csharpSettings);

            var typescriptSettings = new TypeScriptGeneratorSettings {
                EnumNameGenerator = new MyEnumNameGenerator()
            };
            var typescriptGenerator = new TypeScriptDefaultValueGenerator(new TypeScriptTypeResolver(typescriptSettings, new object()), typescriptSettings);

            //// Act
            var schema = new JsonSchema4()
            {
                Type        = JsonObjectType.String,
                Enumeration =
                {
                    "Foo",
                    "Bar"
                },
                Default = "Bar"
            };
            var csharpValue     = csharpGenerator.GetDefaultValue(schema, true, "MyEnum", "MyEnum", true);
            var typescriptValue = typescriptGenerator.GetDefaultValue(schema, true, "MyEnum", "MyEnum", true);

            //// Assert
            Assert.AreEqual("Ns.MyEnum.bar", csharpValue);
            Assert.AreEqual("MyEnum.bar", typescriptValue);
        }
        public void When_schema_has_default_value_of_int_it_is_generated_in_CSharp_and_TypeScript_correctly()
        {
            //// Arrange

            //// Act
            var schema = new JsonSchema4()
            {
                Type    = JsonObjectType.Integer,
                Default = (int)6
            };
            var csharpValue     = _csharpGenerator.GetDefaultValue(schema, true, "int", "int", true);
            var typescriptValue = _typescriptGenerator.GetDefaultValue(schema, true, "int", "int", true);

            //// Assert
            Assert.AreEqual("6", csharpValue);
            Assert.AreEqual("6", typescriptValue);
        }