示例#1
0
        public void Rfc1464Examples(string internalForm, string expAttributeName, string expAttributeValue)
        {
            TextResourceRecord            record    = new TextResourceRecord(new ArrayTextResourceRecord(internalForm));
            KeyValuePair <string, string> attribute = record.Attribute;

            Assert.Equal(expAttributeName, attribute.Key);
            Assert.Equal(expAttributeValue, attribute.Value);
        }
示例#2
0
        public void NegativeExamples(string input, string expTxtData, string expAttributeName, string expAttributeValue)
        {
            TextResourceRecord            record    = new TextResourceRecord(new ArrayTextResourceRecord(input));
            KeyValuePair <string, string> attribute = record.Attribute;

            Assert.Equal(expTxtData, record.ToStringTextData());
            Assert.Equal(expAttributeName, attribute.Key);
            Assert.Equal(expAttributeValue, attribute.Value);
        }