public void ToString_FormatsKeyValue(object key, object?value, string expected) { var entry = new DictionaryEntry(key, value); string result = entry.ToString(); Assert.Equal(expected, result); }
public static StreamWriter Write([NotNull] this StreamWriter thisValue, DictionaryEntry pair) { thisValue.Write(pair.ToString('=')); return(thisValue); }