public void Contains_IfTheCollectionContainsTheItem_ShouldReturnTrue() { ConfigurationElementMock configurationElement = new ConfigurationElementMock(); ConfigurationElementCollectionMock configurationElementCollection = new ConfigurationElementCollectionMock { configurationElement }; Assert.IsTrue(configurationElementCollection.Contains(configurationElement)); }
public void Contains_IfTheCollectionDoesNotContainTheItem_ShouldReturnFalse() { ConfigurationElementMock configurationElement = new ConfigurationElementMock(); ConfigurationElementCollectionMock configurationElementCollection = new ConfigurationElementCollectionMock(); Assert.IsFalse(configurationElementCollection.Contains(configurationElement)); }