public void op_Empty_stringsEmpty(bool expected, string value) { var obj = new KeyStringDictionary { new KeyStringPair("A", value) }; var actual = obj.Empty(); Assert.Equal(expected, actual); }
public void op_Empty_strings(bool expected, string keys) { var obj = new KeyStringDictionary { new KeyStringPair("A", "1"), new KeyStringPair("B", string.Empty), new KeyStringPair("C", "3"), new KeyStringPair("D", string.Empty) }; var actual = obj.Empty(keys.Split(',', StringSplitOptions.RemoveEmptyEntries)); Assert.Equal(expected, actual); }