public void AddObjectTypeIndirectionLevel_AddsToCollection() { // Create the collection and ensure it's blank. var collection = new MFilesAPI.PropertyDefOrObjectTypes(); Assert.AreEqual(0, collection.Count); // Add the item. collection.AddObjectTypeIndirectionLevel(123); // Ensure the collection increased in size. Assert.AreEqual(1, collection.Count); }
public void AddObjectTypeIndirectionLevel_ValueCorrect() { // Create the collection and ensure it's blank. var collection = new MFilesAPI.PropertyDefOrObjectTypes(); Assert.AreEqual(0, collection.Count); // Add the item. collection.AddObjectTypeIndirectionLevel(1234); // Check the added item. var item = collection[1]; Assert.IsNotNull(item); Assert.AreEqual(1234, item.ID); Assert.IsFalse(item.PropertyDef); }