Beispiel #1
0
        public void LookupTest1()
        {
            IDBAccessor    database      = null;                    // TODO: Initialize to an appropriate value
            NameIdMap      target        = new NameIdMap(database); // TODO: Initialize to an appropriate value
            INamedProperty namedProperty = null;                    // TODO: Initialize to an appropriate value
            PropId         expected      = new PropId();            // TODO: Initialize to an appropriate value
            PropId         actual;

            actual = target.Lookup(namedProperty);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #2
0
        public void LookupTest3()
        {
            IDBAccessor database = null;                    // TODO: Initialize to an appropriate value
            NameIdMap   target   = new NameIdMap(database); // TODO: Initialize to an appropriate value
            Guid        guid     = new Guid();              // TODO: Initialize to an appropriate value
            string      name     = string.Empty;            // TODO: Initialize to an appropriate value
            PropId      expected = new PropId();            // TODO: Initialize to an appropriate value
            PropId      actual;

            actual = target.Lookup(guid, name);
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Beispiel #3
0
        private void NamedPropertiesForm_Load(object sender, EventArgs e)
        {
            foreach (var prop in _nameIdMap.NamedProperties)
            {
                var item = new ListViewItem {
                    Text = _nameIdMap.Lookup(prop).ToString()
                };

                item.SubItems.Add(prop.IsString ? prop.Name : ("0x" + prop.ID.ToString("X8")));
                item.SubItems.Add(prop.Guid.ToString());

                namedPropertiesList.Items.Add(item);
            }
        }