public void RequiredObjectListWithOutValueTest()
        {
            try
            {
                var obj8 = new ComplexTypeWithRequiredList(); //empty list test

                SwagValidator.Validate(obj8);                 //should throw exception
                Assert.Fail();                                // should not reach here because empty string threw exception
            }
            catch (Exception ex)
            {
                Assert.AreEqual("Value cannot be null. Parameter name: RequiredObject", ex.Message);
            }
        }
        public void RequiredObjectListWithValueTest()
        {
            var obj7 = new ComplexTypeWithRequiredList
            {
                RequiredObject = new List <slot>()
                {
                    new slot()
                    {
                        MyProperty1 = "value"
                    }
                }
            };

            Assert.IsTrue(SwagValidator.Validate(obj7));
        }