void AssertGets(int key1, string key2)
        {
            Expect(map.GetByKey1(key1), EqualTo(key2));
            Expect(map.GetByKey2(key2), EqualTo(key1));

            int    outkey1;
            string outkey2;
            var    outkey1Result = map.TryGetByKey1(key1, out outkey2);
            var    outkey2Result = map.TryGetByKey2(key2, out outkey1);

            Expect(outkey1, EqualTo(key1));
            Expect(outkey2, EqualTo(key2));
            Expect(outkey1Result, True);
            Expect(outkey2Result, True);
        }
Example #2
0
 public RuntimeTypeId GetIdForType(Type type)
 {
     return(map.GetByKey2(type));
 }