예제 #1
0
        public void TestAssemblyLoad1()
        {
            AddTempFiles(1);

            using (StreamWriter sw = new StreamWriter((string)CodeFiles[0]))
            {
                sw.WriteLine(@"
	public class Test
	{
	}"    );
            }

            Compile(0);

            TypeResolutionService trs = new TypeResolutionService(Path.GetTempPath());
            Assembly asm = trs.GetAssembly(Common.ReflectionHelper.ParseAssemblyName(
                                               Path.GetFileNameWithoutExtension((string)AsmFiles[0])));

            Assert.IsNotNull(asm);
        }
예제 #2
0
        public void TestAssemblyLoad()
        {
            TypeResolutionService trs = new TypeResolutionService(Path.GetTempPath());

            trs.GetAssembly(null);
        }