No need to write the same assertion in each case (except the default one). Instead we can assert after the switch statement.
Attach a file by drag & drop or click to upload