public void Should_fail_to_open_non_photoshop_file(string path) { Assert.Throws <InvalidPhotoshopFileException>( () => { using var photoshopFile = PhotoshopFile.OpenPsd(path); } ); Assert.Throws <InvalidPhotoshopFileException>( () => { using var photoshopFile = PhotoshopFile.OpenPsb(path); } ); }