示例#1
0
        public void Reset_1()
        {
            var b = new InlineBuilder();

            b.IsEmpty.IsTrue();
            b.Add("abc");
            b.IsEmpty.IsFalse();
            b.Clear();
            b.IsEmpty.IsTrue();
            b.Add("def");
            b.IsEmpty.IsFalse();
            b.Clear(true);
            b.IsEmpty.IsTrue();
        }
示例#2
0
        public void Reset_2()
        {
            var b = new InlineBuilder();

            b.Property = Ins;
            b.Property.Is(Ins);
            b.Clear();
            b.Property.Is(None);
            b.Property = Del;
            b.Property.Is(Del);
            b.Clear(true);
            b.Property.Is(Del);
            b.Clear(false);
            b.Property.Is(None);
        }