コード例 #1
0
        public void equals_returns_true_if_headers_and_values_match()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name", "Age", "Gender" }), new string[] { "Kent", "M", "25" });
            var data2 = new DataRecord(new HeaderRecord(new string[] { "Name", "Age", "Gender" }), new string[] { "Kent", "M", "25" });

            Assert.True(data1.Equals(data2));
            Assert.True(data2.Equals(data1));
        }
コード例 #2
0
        public void equals_returns_false_if_one_record_has_header_and_other_does_not()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name" }), new string[] { "Kent" });
            var data2 = new DataRecord(null, new string[] { "Kent" });

            Assert.False(data1.Equals(data2));
            Assert.False(data2.Equals(data1));
        }
コード例 #3
0
        public void equals_returns_false_if_header_values_differ()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name" }), new string[] { "Kent" });
            var data2 = new DataRecord(new HeaderRecord(new string[] { "name" }), new string[] { "Kent" });

            Assert.False(data1.Equals(data2));
            Assert.False(data2.Equals(data1));
        }
コード例 #4
0
        public void equals_returns_true_if_headers_and_values_match()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name", "Age", "Gender" }), new string[] { "Kent", "M", "25" });
            var data2 = new DataRecord(new HeaderRecord(new string[] { "Name", "Age", "Gender" }), new string[] { "Kent", "M", "25" });

            Assert.True(data1.Equals(data2));
            Assert.True(data2.Equals(data1));
        }
コード例 #5
0
        public void equals_returns_false_if_one_record_has_header_and_other_does_not()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name" }), new string[] { "Kent" });
            var data2 = new DataRecord(null, new string[] { "Kent" });

            Assert.False(data1.Equals(data2));
            Assert.False(data2.Equals(data1));
        }
コード例 #6
0
        public void equals_returns_false_if_header_values_differ()
        {
            var data1 = new DataRecord(new HeaderRecord(new string[] { "Name" }), new string[] { "Kent" });
            var data2 = new DataRecord(new HeaderRecord(new string[] { "name" }), new string[] { "Kent" });

            Assert.False(data1.Equals(data2));
            Assert.False(data2.Equals(data1));
        }