Follow The steps -:
1) First open Notepad and copy below code into it.
2)
X5O!P%@AP[4PZX54(P^)7CC)7}$EICAR-STANDARD-ANTIVIRUS-TEST-FILE!$H+H*
3) Save the file as virus.exe
4) As soon as you will run this file your antivirus will detect it as software. If not then you need to change your program.