Beispiel #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);
        }
Beispiel #2
0
        public void TestAssemblyLoad()
        {
            TypeResolutionService trs = new TypeResolutionService(Path.GetTempPath());

            trs.GetAssembly(null);
        }