public void is_over_single_test() { var colorBalls = RepositoryFactory.GetBalls(); Assert.ThrowsException <InvalidOperationException>(() => colorBalls.IsSingle(ball => ball.Size == "L")); }