Esempio n. 1
0
            public void ContainsObjectTrue()
            {
                var observableDictionary = new FastObservableDictionary <int, int>()
                {
                    {
                        1, 2
                    }
                };

                var result = observableDictionary.Contains((object)1);

                Assert.IsTrue(result);
            }
Esempio n. 2
0
            public void ContainsObjectInvalidTypeFalse()
            {
                var observableDictionary = new FastObservableDictionary <int, int>()
                {
                    {
                        1, 2
                    }
                };

                var result = observableDictionary.Contains((object)"1");

                Assert.IsFalse(result);
            }
Esempio n. 3
0
            public void ContainsKvpSuccess()
            {
                var observableDictionary = new FastObservableDictionary <int, int>()
                {
                    {
                        1, 2
                    }
                };

                var result = observableDictionary.Contains(new KeyValuePair <int, int>(1, 2));

                Assert.IsTrue(result);
            }