public void BindingContext_ClearCore_Empty_Success()
        {
            var context = new SubBindingContext();

            context.ClearCore();
            Assert.Empty(context);

            // Clear again.
            context.ClearCore();
            Assert.Empty(context);
        }
        public void BindingContext_ClearCore_NotEmpty_Success()
        {
            var context = new SubBindingContext();
            var source  = new BindingSource();

            context.Add(new DataSource(), source.CurrencyManager);

            // Clear again.
            context.ClearCore();
            Assert.Empty(context);

            context.ClearCore();
            Assert.Empty(context);
        }