예제 #1
0
		public void When_custom_output_path_use_custom_output_path()
		{
			var document = new ProjectDocument(ProjectType.CSharp);
			document.SetAssemblyName("mehassembly.dll");
			document.SetOutputPath(string.Format("bin{0}Debug", Path.DirectorySeparatorChar));
			var project = new Project(string.Format("C:{0}Project{0}Location{0}meh.csproj", Path.DirectorySeparatorChar), document);
			var assembly = project.GetAssembly(string.Format("bin{0}bleh{0}", Path.DirectorySeparatorChar));
			assembly.ShouldEqual(string.Format(@"C:{0}Project{0}Location{0}bin{0}bleh{0}mehassembly.dll", Path.DirectorySeparatorChar));
		}
예제 #2
0
		public void When_custom_output_path_exists_use_only_custom_output_path()
		{
			var path = Path.GetDirectoryName(new Uri(Assembly.GetExecutingAssembly().CodeBase).LocalPath);
			var document = new ProjectDocument(ProjectType.CSharp);
			document.SetAssemblyName("mehassembly.dll");
			document.SetOutputPath(string.Format("bin{0}Debug", Path.DirectorySeparatorChar));
			var project = new Project(string.Format("C:{0}Project{0}Location{0}meh.csproj", Path.DirectorySeparatorChar), document);
			var assembly = project.GetAssembly(path);
			assembly.ShouldEqual(string.Format(Path.Combine(path, "mehassembly.dll"), Path.DirectorySeparatorChar));
		}
 public bool CanHandleTestFor(Project project)
 {
     if (!_configuration.UseAutoTestTestRunner)
         return false;
     return CanHandleTestFor(project.GetAssembly(_configuration.CustomOutputPath));
 }
예제 #4
0
 private RunInfo getRunInfo(Project x)
 {
     var info = new RunInfo(x);
     info.SetAssembly(x.GetAssembly(_configuration.CustomOutputPath));
     return info;
 }