예제 #1
0
        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));
        }
예제 #2
0
        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));
        }
예제 #3
0
        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));
        }
예제 #4
0
        public void equals_returns_false_if_compared_to_null()
        {
            var record = new ConcreteRecordBase();

            Assert.False(record.Equals(null));
        }
예제 #5
0
        public void equals_returns_true_if_compared_to_self()
        {
            var record = new ConcreteRecordBase();

            Assert.True(record.Equals(record));
        }
예제 #6
0
 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));
 }
예제 #7
0
 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));
 }
예제 #8
0
 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));
 }
예제 #9
0
 public void equals_returns_true_if_compared_to_self()
 {
     var record = new ConcreteRecordBase();
     Assert.True(record.Equals(record));
 }
예제 #10
0
 public void equals_returns_false_if_compared_to_null()
 {
     var record = new ConcreteRecordBase();
     Assert.False(record.Equals(null));
 }