public void AddOrUpdateTest2NullCheck() { // ReSharper disable once AssignNullToNotNullAttribute Action test = () => Extensions.AddOrUpdate(null, new Object(), () => new Object()); test.ShouldThrow <ArgumentNullException>(); }