public void op_NotEmpty_stringsEmpty(bool expected, string value) { var obj = new KeyStringDictionary { new KeyStringPair("A", value) }; var actual = obj.NotEmpty(); Assert.Equal(expected, actual); }
public void op_NotEmpty_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.NotEmpty(keys.Split(',', StringSplitOptions.RemoveEmptyEntries)); Assert.Equal(expected, actual); }