Beispiel #1
0
        public void SupportedClasses()
        {
            KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) });

            keys.Add(Int32Key.Create(1, "Product"));
            keys.Add(GuidKey.Create(Guid.NewGuid(), "Category"));
        }
Beispiel #2
0
        public void SupportedTypes()
        {
            KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" });

            keys.Add(Int32Key.Create(1, "Product"));
            keys.Add(GuidKey.Create(Guid.NewGuid(), "Category"));
        }
Beispiel #3
0
        public void AllSupportedKeyTypesAndClasses()
        {
            KeyCollection keys = new KeyCollection();

            keys.Add(Int32Key.Create(1, "Product"));
            keys.Add(GuidKey.Create(Guid.NewGuid(), "Category"));
        }
Beispiel #4
0
        public void EmptyKeyIsIgnored()
        {
            KeyCollection keys = new KeyCollection();

            keys.Add(Int32Key.Empty("Product"));
            Assert.AreEqual(0, keys.Count);
        }
Beispiel #5
0
        public void NotSupportedClassesForEmptyKey()
        {
            KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) });

            keys.Add(StringKey.Empty("PriceList"));
        }
Beispiel #6
0
        public void NotSupportedClasses()
        {
            KeyCollection keys = new KeyCollection(null, new Type[] { typeof(Int32Key), typeof(GuidKey) });

            keys.Add(StringKey.Create("1", "PriceList"));
        }
Beispiel #7
0
        public void NotSupportedTypesForEmptyKey()
        {
            KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" });

            keys.Add(StringKey.Empty("PriceList"));
        }
Beispiel #8
0
        public void NotSupportedTypes()
        {
            KeyCollection keys = new KeyCollection(new string[] { "Product", "Category" });

            keys.Add(Int32Key.Create(1, "PriceList"));
        }