Esempio n. 1
0
        public void index_of_returns_index_if_value_is_in_record()
        {
            var record = new ConcreteRecordBase("one", "two", "three");

            Assert.Equal(0, record.IndexOf("one"));
            Assert.Equal(1, record.IndexOf("two"));
            Assert.Equal(2, record.IndexOf("three"));
        }
Esempio n. 2
0
        public void index_of_returns_negative_one_if_value_is_not_in_record()
        {
            var record = new ConcreteRecordBase("one", "two");

            Assert.Equal(-1, record.IndexOf("three"));
            Assert.Equal(-1, record.IndexOf("ONE"));
            Assert.Equal(-1, record.IndexOf("Two"));
        }
Esempio n. 3
0
 public void index_of_returns_index_if_value_is_in_record()
 {
     var record = new ConcreteRecordBase("one", "two", "three");
     Assert.Equal(0, record.IndexOf("one"));
     Assert.Equal(1, record.IndexOf("two"));
     Assert.Equal(2, record.IndexOf("three"));
 }
Esempio n. 4
0
 public void index_of_returns_negative_one_if_value_is_not_in_record()
 {
     var record = new ConcreteRecordBase("one", "two");
     Assert.Equal(-1, record.IndexOf("three"));
     Assert.Equal(-1, record.IndexOf("ONE"));
     Assert.Equal(-1, record.IndexOf("Two"));
 }