/* 
 * OpenAPI Petstore
 *
 * This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
 *
 * OpenAPI spec version: 1.0.0
 * 
 * Generated by: https://github.com/openapitools/openapi-generator.git
 */


using Xunit;

using System;
using System.Linq;
using System.IO;
using System.Collections.Generic;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Model;
using Org.OpenAPITools.Client;
using System.Reflection;
using Newtonsoft.Json;

namespace Org.OpenAPITools.Test
{
    /// <summary>
    ///  Class for testing SpecialModelName
    /// </summary>
    /// <remarks>
    /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech).
    /// Please update the test case below to test the model.
    /// </remarks>
    public class SpecialModelNameTests
    {
        /// <summary>
        /// Test an instance of SpecialModelName
        /// </summary>
        [Fact]
        public void SpecialModelNameInstanceTest()
        {
            // TODO uncomment below to test "IsInstanceOfType" SpecialModelName
            //Assert.IsType<SpecialModelName> (instance, "variable 'instance' is a SpecialModelName");
        }

        /// <summary>
        /// Test the property 'SpecialPropertyName'
        /// </summary>
        [Fact]
        public void SpecialPropertyNameTest()
        {
            SpecialModelName s = new SpecialModelName();
            s.SpecialPropertyName = 123L;
            Assert.Equal("{\"$special[property.name]\":123}", JsonConvert.SerializeObject(s));
            // comment out the following as the result is OS-dependent
            //Assert.Equal("{\"id\":123}", s.ToJson());
        }

    }

}
