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