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

            context.Clear();
            Assert.Empty(context);

            // Clear again.
            context.Clear();
            Assert.Empty(context);
        }
        public void BindingContext_Clear_NotEmpty_Success()
        {
            var context = new SubBindingContext();

            using var source = new BindingSource();
            context.Add(new DataSource(), source.CurrencyManager);

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

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