Single() already throws an InvalidOperationException if the result contains more than one element (or if it is empty). You were probably confusing it with First(), which doesn’t throw if there is more than one element.
2
solved Is there a stricter version of .Single()? [closed]