public void LowercaseWithAssemblyName()
        {
            JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.LowercaseWithAssemblyName;
#if NET
            // System.String moved assemblies in .NET
            Assert.AreEqual("assembly_system_private_corelib.system", JavaNativeTypeManager.GetPackageName(typeof(string)));
#else   // !NET
            Assert.AreEqual("assembly_mscorlib.system", JavaNativeTypeManager.GetPackageName(typeof(string)));
#endif  // !NET
        }
        public void Crc64()
        {
            JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.LowercaseCrc64;
#if NET
            // System.String moved assemblies in .NET
            Assert.AreEqual("crc64d04135c992393d83", JavaNativeTypeManager.GetPackageName(typeof(string)));
#else   // !NET
            Assert.AreEqual("crc64b74743e9328eed0a", JavaNativeTypeManager.GetPackageName(typeof(string)));
#endif  // !NET
        }
 public void Lowercase()
 {
     JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.Lowercase;
     Assert.AreEqual("system", JavaNativeTypeManager.GetPackageName(typeof(string)));
 }
Beispiel #4
0
 public void LowercaseWithAssemblyName()
 {
     JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.LowercaseWithAssemblyName;
     Assert.AreEqual("assembly_mscorlib.system", JavaNativeTypeManager.GetPackageName(typeof(string)));
 }
Beispiel #5
0
 public void Crc64()
 {
     JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.LowercaseCrc64;
     Assert.AreEqual("crc64b74743e9328eed0a", JavaNativeTypeManager.GetPackageName(typeof(string)));
 }
Beispiel #6
0
 public void MD5()
 {
     JavaNativeTypeManager.PackageNamingPolicy = PackageNamingPolicy.LowercaseMD5;
     Assert.AreEqual("md5acb69d261d9efeb0927dd7ff443b9a3a", JavaNativeTypeManager.GetPackageName(typeof(string)));
 }