public void equals_returns_true_if_record_values_are_equal_even_if_read_only_flag_differs() { var record1 = new ConcreteRecordBase("first", "second", "third"); var record2 = new ConcreteRecordBase(true, "first", "second", "third"); Assert.True(record1.Equals(record2)); }
public void equals_returns_false_if_record_values_differ() { var record1 = new ConcreteRecordBase("first", "second"); var record2 = new ConcreteRecordBase("first", "2nd"); Assert.False(record1.Equals(record2)); }
public void equals_returns_true_if_record_values_are_equal() { var record1 = new ConcreteRecordBase("first", "second", "third"); var record2 = new ConcreteRecordBase("first", "second", "third"); Assert.True(record1.Equals(record2)); }
public void equals_returns_false_if_compared_to_null() { var record = new ConcreteRecordBase(); Assert.False(record.Equals(null)); }
public void equals_returns_true_if_compared_to_self() { var record = new ConcreteRecordBase(); Assert.True(record.Equals(record)); }