Exemplo n.º 1
0
        public void DuplicatePropertyInGroup()
        {
            IWritableMemoryGroup testGroup = new MemoryGroup();
            MemoryProperty       prop      = new MemoryProperty("Property", new DataType("TestType", new MemoryProperty[0], new MemoryProperty[0]));

            Assert.IsTrue(testGroup.Add(new MemoryItem(prop)), "Failed to add item.");
            Assert.IsFalse(testGroup.Add(new MemoryItem(prop)), "Duplicate property was allowed to be added.");
        }