How do you check to see if the class name of a script and the file name is the same?

Please give detailed instructions.

(1) Look at the name of the file in the Asset Panel

(2) Look at the class name in the part of your class file that declares it.

For example if your script file says

public class Foobar:MonoBehaviour {

Then the name of the Asset must be “Foobar”. Not “FooBar”. Not “Foo bar”.
case matters. spaces may not be used