Example #1
0
        public void Ctor_Default()
        {
            var collection = new SubBindingsCollection();

            Assert.Equal(0, collection.Count);
            Assert.Empty(collection.List);
            Assert.False(collection.ShouldSerializeMyAll());
        }
Example #2
0
        public void AddCore_Invoke_Success()
        {
            var collection = new SubBindingsCollection();
            var binding    = new Binding(null, new object(), "member");

            collection.AddCore(binding);

            Assert.Equal(1, collection.Count);
            Assert.Same(binding, collection[0]);
            Assert.True(collection.ShouldSerializeMyAll());
        }