public void AttributeDictionary_Clear() { // Arrange var attributes = new AttributeDictionary(); attributes.Add(new KeyValuePair <string, string>("zero", "0")); attributes.Add(new KeyValuePair <string, string>("one", "1")); attributes.Add(new KeyValuePair <string, string>("two", "2")); // Act attributes.Clear(); // Assert Assert.Empty(attributes); Assert.Empty(attributes); }
public void AttributeDictionary_Clear() { // Arrange var attributes = new AttributeDictionary(); attributes.Add(new KeyValuePair<string, string>("zero", "0")); attributes.Add(new KeyValuePair<string, string>("one", "1")); attributes.Add(new KeyValuePair<string, string>("two", "2")); // Act attributes.Clear(); // Assert Assert.Equal(0, attributes.Count); Assert.Empty(attributes); }