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