示例#1
0
        public virtual void VerifyAllDT()
        {
            const string dtCompiler        = "DTCompiler";
            const string dtPlatformBuild   = "DTPlatformBuild";
            const string dtSDKBuild        = "DTSDKBuild";
            const string dtPlatformName    = "DTPlatformName";
            const string dtPlatformVersion = "DTPlatformVersion";
            const string dtSDKName         = "DTSDKName";
            const string dtXcode           = "DTXcode";
            const string dtXcodeBuild      = "DTXcodeBuild";

            Assert.That(CompiledPlist.ContainsKey(dtCompiler), "#1");
            Assert.That(CompiledPlist.ContainsKey(dtPlatformBuild), "#2");
            Assert.That(CompiledPlist.ContainsKey(dtSDKBuild), "#2");
            Assert.That(CompiledPlist.ContainsKey(dtPlatformName), "#3");
            Assert.That(CompiledPlist.ContainsKey(dtPlatformVersion), "#4");
            Assert.That(CompiledPlist.ContainsKey(dtSDKName), "#5");
            Assert.That(CompiledPlist.ContainsKey(dtXcode), "#6");
            Assert.That(CompiledPlist.ContainsKey(dtXcodeBuild), "#7");
            Assert.That(CompiledPlist.Get <PString> (dtCompiler).Value, Is.Not.Null.Or.Empty, "#8");
            Assert.That(CompiledPlist.Get <PString> (dtPlatformBuild).Value, Is.Not.Null.Or.Empty, "#9");
            Assert.That(CompiledPlist.Get <PString> (dtSDKBuild).Value, Is.Not.Null.Or.Empty, "#10");
            Assert.That(CompiledPlist.Get <PString> (dtPlatformName).Value, Is.Not.Null.Or.Empty, "#11");
            Assert.That(CompiledPlist.Get <PString> (dtPlatformVersion).Value, Is.Not.Null.Or.Empty, "#12");
            Assert.That(CompiledPlist.Get <PString> (dtSDKName).Value, Is.Not.Null.Or.Empty, "#13");
            Assert.That(CompiledPlist.Get <PString> (dtXcode).Value, Is.Not.Null.Or.Empty, "#14");
            Assert.That(CompiledPlist.Get <PString> (dtXcodeBuild).Value, Is.Not.Null.Or.Empty, "#15");
        }
        public void WatchCompanion()
        {
            Assert.That(CompiledPlist.ContainsKey(ManifestKeys.UIRequiredDeviceCapabilities), "#1");

            var requiredDeviceCapabilities = CompiledPlist.Get <PArray> (ManifestKeys.UIRequiredDeviceCapabilities).ToStringArray();

            Assert.That(requiredDeviceCapabilities.Contains("watch-companion"), "#2");
        }
 public override void BundlePackageType()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundlePackageType), "#1");
     Assert.AreEqual(CompiledPlist.Get <PString> (ManifestKeys.CFBundlePackageType).Value, "XPC!", "#2");
 }
示例#4
0
 public override void BundleName()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleName), "#1");
     Assert.AreEqual(CompiledPlist.Get <PString> (ManifestKeys.CFBundleName).Value, appBundleName, "#2");
 }
示例#5
0
 public virtual void XamarinVersion()
 {
     Assert.That(CompiledPlist.ContainsKey("com.xamarin.ios"), "#1");
     Assert.That(CompiledPlist.Get <PDictionary> ("com.xamarin.ios").GetString("Version").Value, Is.Not.Null.Or.Empty, "#2");
 }
示例#6
0
 public virtual void MinimumOSVersion()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.MinimumOSVersion), "#1");
     Assert.That(CompiledPlist.Get <PString> (ManifestKeys.MinimumOSVersion).Value, Is.Not.Null.Or.Empty, "#2");
 }
示例#7
0
 public virtual void DeviceFamily()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.UIDeviceFamily), "#1");
     Assert.That(CompiledPlist.Get <PArray> (ManifestKeys.UIDeviceFamily).Any(), "#2");
 }
示例#8
0
 public virtual void BundleSupportedPlatforms()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleSupportedPlatforms), "#1");
     Assert.That(CompiledPlist.Get <PArray> (ManifestKeys.CFBundleSupportedPlatforms).Any(), "#2");
 }
示例#9
0
 public virtual void BundleSignature()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleSignature), "#1");
     Assert.AreEqual(CompiledPlist.Get <PString> (ManifestKeys.CFBundleSignature).Value, "????", "#2");
 }
示例#10
0
 public virtual void BundleInfoDictionaryVersion()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleInfoDictionaryVersion), "#1");
     Assert.That(CompiledPlist.Get <PString> (ManifestKeys.CFBundleInfoDictionaryVersion).Value, Is.Not.Null.Or.Empty, "#2");
 }
示例#11
0
 public virtual void BundleIdentifier()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleIdentifier), "#1");
     Assert.AreEqual(CompiledPlist.Get <PString> (ManifestKeys.CFBundleIdentifier).Value, identifier, "#2");
 }
示例#12
0
 public virtual void BundleExecutable()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleExecutable), "#1");
     Assert.AreEqual(CompiledPlist.Get <PString> (ManifestKeys.CFBundleExecutable).Value, assemblyName, "#2");
 }
示例#13
0
 public void BuildMachineOSBuild()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.BuildMachineOSBuild), "#1");
     Assert.That(CompiledPlist.Get <PString> (ManifestKeys.BuildMachineOSBuild).Value, Is.Not.Null.Or.Empty, "#2");
 }
示例#14
0
 public virtual void BundleVersion()
 {
     Assert.That(CompiledPlist.ContainsKey(ManifestKeys.CFBundleVersion), "#1");
     Assert.IsNotNullOrEmpty(CompiledPlist.Get <PString> (ManifestKeys.CFBundleVersion).Value, "#2");
 }