예제 #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"));
        }
예제 #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"));
        }
예제 #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"));
 }
예제 #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"));
 }