Exemplo n.º 1
0
        public void clear_removes_all_values()
        {
            var record = new ConcreteRecordBase(new string[] { "one", "two" }.ToList());

            Assert.Equal(2, record.Count);
            record.Clear();
            Assert.Equal(0, record.Count);
        }
Exemplo n.º 2
0
 public void clear_removes_all_values()
 {
     var record = new ConcreteRecordBase(new string[] { "one", "two" }.ToList());
     Assert.Equal(2, record.Count);
     record.Clear();
     Assert.Equal(0, record.Count);
 }
Exemplo n.º 3
0
        public void clear_throws_if_read_only()
        {
            var record = new ConcreteRecordBase(true, "one", "two");

            Assert.Throws <NotSupportedException>(() => record.Clear());
        }
Exemplo n.º 4
0
 public void clear_throws_if_read_only()
 {
     var record = new ConcreteRecordBase(true, "one", "two");
     Assert.Throws<NotSupportedException>(() => record.Clear());
 }