Esempio n. 1
0
        public void to_string_returns_a_useful_debug_representation_of_the_record()
        {
            var separator = (char)0x2022;
            var record    = new ConcreteRecordBase("value1", "value2", "value3", "value4");

            Assert.Equal(string.Format("value1{0}value2{0}value3{0}value4{0}", separator), record.ToString());
            record[1] += " ";
            Assert.Equal(string.Format("value1{0}value2 {0}value3{0}value4{0}", separator), record.ToString());
            record.Add("a new value");
            Assert.Equal(string.Format("value1{0}value2 {0}value3{0}value4{0}a new value{0}", separator), record.ToString());
        }
Esempio n. 2
0
 public void to_string_returns_a_useful_debug_representation_of_the_record()
 {
     var separator = (char)0x2022;
     var record = new ConcreteRecordBase("value1", "value2", "value3", "value4");
     Assert.Equal(string.Format("value1{0}value2{0}value3{0}value4{0}", separator), record.ToString());
     record[1] += " ";
     Assert.Equal(string.Format("value1{0}value2 {0}value3{0}value4{0}", separator), record.ToString());
     record.Add("a new value");
     Assert.Equal(string.Format("value1{0}value2 {0}value3{0}value4{0}a new value{0}", separator), record.ToString());
 }