Reset() public method

Resets this collection model.
public Reset ( ) : void
return void
        public void reset_raises_begin_and_end_events()
        {
            var resetBeginRaised = false;
            var resetCompleteRaised = false;
            var model = new DoubleCollectionModel();

            model.ResetBegin += delegate
            {
                Assert.False(resetBeginRaised);
                Assert.False(resetCompleteRaised);
                resetBeginRaised = true;
            };
            model.ResetComplete += delegate
            {
                Assert.True(resetBeginRaised);
                Assert.False(resetCompleteRaised);
                resetCompleteRaised = true;
            };
            model.Reset();
            Assert.True(resetBeginRaised && resetCompleteRaised);
        }
        public void can_reset()
        {
            var model = new DoubleCollectionModel();

            model.Add(1d);
            model.Add(2d);
            model.Reset();
            assert_has_default_property_values(model);
        }