public void UnsupportedPlatformFileExtensionShouldCrash() { Assert.Throws<PlatformNameExtensions.UnsupportedPlatformPackageFileExtension>( () => PlatformNameExtensions.GetPlatformFromFileExtension("jpg")); }
public void PlatformShouldUseCorrectFileExtension(PlatformName platform, string extension) { Assert.AreEqual(platform, PlatformNameExtensions.GetPlatformFromFileExtension(extension)); Assert.AreEqual(extension, PlatformNameExtensions.GetAppExtension(platform)); }