BTW, the above applies to "at-will" employment. If you have an employment contract with specific dates, and they fire you before the contract expires, you can consider sue them with "breach of contract". Please consult a lawyer.
(This is not a legal advise.)