public void TestBindCollectionChangedNotRunIfParsingSequenceEqualEnumerable()
        {
            var dict = new BindableDictionary <string, byte>
            {
                { "a", 1 },
                { "b", 3 },
                { "c", 5 },
                { "d", 7 }
            };

            var enumerable = new[]
            {
                new KeyValuePair <string, byte>("a", 1),
                new KeyValuePair <string, byte>("b", 3),
                new KeyValuePair <string, byte>("c", 5),
                new KeyValuePair <string, byte>("d", 7)
            };

            NotifyDictionaryChangedEventArgs <string, byte> triggeredArgs = null;

            dict.BindCollectionChanged((_, args) => triggeredArgs = args);
            dict.Parse(enumerable);

            Assert.That(triggeredArgs, Is.Null);
        }
        public void TestParseWithNullClearsDictionary()
        {
            bindableStringByteDictionary.Add("a item", 0);

            bindableStringByteDictionary.Parse(null);

            Assert.IsEmpty(bindableStringByteDictionary);
        }