public void Item_InvalidIndex_ThrowsArgumentOutOfRangeException(int index)
{
var collection = new CodeNamespaceCollection();
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index]);
Assert.Throws<ArgumentOutOfRangeException>("index", () => collection[index] = new CodeNamespace());
}