Exemple #1
0
        public void PersistentProxyBuilder_NullIfNothingSaved()
        {
            PersistentProxyBuilder builder = new PersistentProxyBuilder();
            string path = builder.SaveAssembly();

            Assert.IsNull(path);
        }
		public void PersistentProxyBuilder_SavesSignedFile()
		{
			PersistentProxyBuilder builder = new PersistentProxyBuilder();
			builder.CreateClassProxyType(typeof(object), Type.EmptyTypes, ProxyGenerationOptions.Default);
			string path = builder.SaveAssembly();
			Assert.IsNotNull(path);
			Assert.IsNotEmpty(path);
			Assert.IsTrue(Path.IsPathRooted(path));
			Assert.IsTrue(path.EndsWith(ModuleScope.DEFAULT_FILE_NAME));
		}
Exemple #3
0
        public void PersistentProxyBuilder_SavesSignedFile()
        {
            PersistentProxyBuilder builder = new PersistentProxyBuilder();

            builder.CreateClassProxyType(typeof(object), Type.EmptyTypes, ProxyGenerationOptions.Default);
            string path = builder.SaveAssembly();

            Assert.IsNotNull(path);
            Assert.IsNotEmpty(path);
            Assert.IsTrue(Path.IsPathRooted(path));
            Assert.IsTrue(path.EndsWith(ModuleScope.DEFAULT_FILE_NAME));
        }
 public virtual void TearDown()
 {
     if (!IsVerificationDisabled)
     {
         // Note: only supports one generated assembly at the moment
         string path = builder.SaveAssembly();
         if (path != null)
         {
             RunPEVerifyOnGeneratedAssembly(path);
         }
     }
 }
		public void PersistentProxyBuilder_NullIfNothingSaved()
		{
			PersistentProxyBuilder builder = new PersistentProxyBuilder();
			string path = builder.SaveAssembly();
			Assert.IsNull(path);
		}