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