public void IndexOfIndexMustBeZeroOrGreater()
 {
     Should.Throw <ArgumentOutOfRangeException>(() =>
     {
         ListBuilderExtensions.IndexOf(listBuilderImpl, -1);
     });
 }
        public void IndexOfIndexShouldBeLessThanListCapacity()
        {
            listBuilderImpl.Capacity.Returns(10);

            Should.Throw <ArgumentOutOfRangeException>(() =>
            {
                ListBuilderExtensions.IndexOf(listBuilderImpl, 11);
            });
        }