public void Add_generic_throws_for_null_argument()
 {
     Assert.Throws <ArgumentNullException>(
         () => MockHelper.CreateMockEntityCollection <string>(null).Object.Add(null));
 }
 public void Add_object_throws_for_null_argument()
 {
     Assert.Throws <ArgumentNullException>(
         () => ((IRelatedEnd)MockHelper.CreateMockEntityCollection <string>(null).Object).Add((object)null));
 }
Example #3
0
 public void Remove_throws_for_null_argument()
 {
     Assert.Throws <ArgumentNullException>(
         () => MockHelper.CreateMockEntityCollection <object>(null).Object.Remove(null));
 }