hasExtension

Asserts the file has the expected extension.