public void RemoveAtTest1()
 {
     DBObject a = new DBObject();
     DBObject b = new DBObject("a", 7);
     DBObject c = new DBObject("78", "car");
     IList target = new DBObjectArray(a, b, c) as IList;
     target.RemoveAt(1);
     target.IndexOf(c).Should().Be(1);
     target.Count.Should().Be(2);
 }
 public void RemoveAtTest()
 {
     DBObject a = new DBObject();
     DBObject b = new DBObject("a", 7);
     DBObject c = new DBObject("78", "car");
     DBObjectArray target = new DBObjectArray(a, b, c);
     target.IndexOf(a).Should().Be(0);
     target.IndexOf(b).Should().Be(1);
     target.IndexOf(c).Should().Be(2);
     target.Count.Should().Be(3);
     target.RemoveAt(1);
     target.IndexOf(a).Should().Be(0);
     target.IndexOf(c).Should().Be(1);
     target.Count.Should().Be(2);
 }