string CreateFilterFile()
		{
			var classFilterBuilder = new ClassFilterBuilder();
			var projectContent = ParserService.GetProjectContent(project);
			var filter = classFilterBuilder.BuildFilterFor(tests, @using: projectContent);
			
			string path = null;
			if (filter.Count > 0) {
				path = Path.GetTempFileName();
				using (var stream = new FileStream(path, FileMode.Create, FileAccess.Write))
				using (var writer = new StreamWriter(stream))
					foreach (var testClassName in filter) {
							writer.WriteLine(testClassName);
					}
			}
			return path;
		}
Beispiel #2
0
		string CreateFilterFile()
		{
			var classFilterBuilder = new ClassFilterBuilder();
			IList<string> filter = classFilterBuilder.BuildFilterFor(tests);
			
			string path = null;
			if (filter.Count > 0) {
				path = Path.GetTempFileName();
				using (var stream = new FileStream(path, FileMode.Create, FileAccess.Write))
				using (var writer = new StreamWriter(stream)) {
					foreach (string testClassName in filter) {
						writer.WriteLine(testClassName);
					}
				}
			}
			return path;
		}
Beispiel #3
0
        string CreateFilterFile()
        {
            var classFilterBuilder = new ClassFilterBuilder();
            var projectContent     = ParserService.GetProjectContent(project);
            var filter             = classFilterBuilder.BuildFilterFor(tests, @using: projectContent);

            string path = null;

            if (filter.Count > 0)
            {
                path = Path.GetTempFileName();
                using (var stream = new FileStream(path, FileMode.Create, FileAccess.Write))
                    using (var writer = new StreamWriter(stream))
                        foreach (var testClassName in filter)
                        {
                            writer.WriteLine(testClassName);
                        }
            }
            return(path);
        }
        string CreateFilterFile()
        {
            var            classFilterBuilder = new ClassFilterBuilder();
            IList <string> filter             = classFilterBuilder.BuildFilterFor(tests);

            string path = null;

            if (filter.Count > 0)
            {
                path = Path.GetTempFileName();
                using (var stream = new FileStream(path, FileMode.Create, FileAccess.Write))
                    using (var writer = new StreamWriter(stream)) {
                        foreach (string testClassName in filter)
                        {
                            writer.WriteLine(testClassName);
                        }
                    }
            }
            return(path);
        }