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); }
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); }