Beispiel #1
0
        public void contains_returns_true_if_value_is_in_record()
        {
            var record = new ConcreteRecordBase("one", "two");

            Assert.True(record.Contains("one"));
            Assert.True(record.Contains("two"));
        }
Beispiel #2
0
        public void contains_returns_false_if_value_is_not_in_record()
        {
            var record = new ConcreteRecordBase("one", "two");

            Assert.False(record.Contains("three"));
            Assert.False(record.Contains("ONE"));
            Assert.False(record.Contains("Two"));
        }
Beispiel #3
0
        public void remove_removes_value()
        {
            var record = new ConcreteRecordBase("one", "two", "three");

            Assert.True(record.Contains("one"));
            record.Remove("one");
            Assert.False(record.Contains("one"));
            Assert.Equal(2, record.Count);
        }
Beispiel #4
0
        public void add_adds_specified_value()
        {
            var record = new ConcreteRecordBase();

            record.Add("one");
            Assert.Equal(1, record.Count);
            Assert.True(record.Contains("one"));

            record.Add("two");
            Assert.Equal(2, record.Count);
            Assert.True(record.Contains("two"));
        }
Beispiel #5
0
        public void contains_throws_if_value_is_null()
        {
            var record = new ConcreteRecordBase();

            Assert.Throws <ArgumentNullException>(() => record.Contains(null));
        }
Beispiel #6
0
        public void remove_removes_value()
        {
            var record = new ConcreteRecordBase("one", "two", "three");

            Assert.True(record.Contains("one"));
            record.Remove("one");
            Assert.False(record.Contains("one"));
            Assert.Equal(2, record.Count);
        }
Beispiel #7
0
        public void add_adds_specified_value()
        {
            var record = new ConcreteRecordBase();

            record.Add("one");
            Assert.Equal(1, record.Count);
            Assert.True(record.Contains("one"));

            record.Add("two");
            Assert.Equal(2, record.Count);
            Assert.True(record.Contains("two"));
        }
Beispiel #8
0
 public void contains_returns_true_if_value_is_in_record()
 {
     var record = new ConcreteRecordBase("one", "two");
     Assert.True(record.Contains("one"));
     Assert.True(record.Contains("two"));
 }
Beispiel #9
0
 public void contains_returns_false_if_value_is_not_in_record()
 {
     var record = new ConcreteRecordBase("one", "two");
     Assert.False(record.Contains("three"));
     Assert.False(record.Contains("ONE"));
     Assert.False(record.Contains("Two"));
 }
Beispiel #10
0
 public void contains_throws_if_value_is_null()
 {
     var record = new ConcreteRecordBase();
     Assert.Throws<ArgumentNullException>(() => record.Contains(null));
 }