public void AddPropertyDefIndirectionLevel_AddsToCollection()
        {
            // Create the collection and ensure it's blank.
            var collection = new MFilesAPI.PropertyDefOrObjectTypes();

            Assert.AreEqual(0, collection.Count);

            // Add the item.
            collection.AddPropertyDefIndirectionLevel(123);

            // Ensure the collection increased in size.
            Assert.AreEqual(1, collection.Count);
        }
        public void AddPropertyDefIndirectionLevel_ValueCorrect()
        {
            // Create the collection and ensure it's blank.
            var collection = new MFilesAPI.PropertyDefOrObjectTypes();

            Assert.AreEqual(0, collection.Count);

            // Add the item.
            collection.AddPropertyDefIndirectionLevel(123);

            // Check the added item.
            var item = collection[1];

            Assert.IsNotNull(item);
            Assert.AreEqual(123, item.ID);
            Assert.IsTrue(item.PropertyDef);
        }