public TestsGenerator(int maxReadersCount, int maxGeneratorsCount, int maxWritersCount, string outputDir)
 {
     this.maxGeneratorsCount = maxGeneratorsCount;
     this.maxReadersCount    = maxReadersCount;
     this.maxWritersCount    = maxWritersCount;
     writer = new TestWriter(outputDir);
     reader = new TestReader();
 }
Пример #2
0
 public DirectoryRunner(ITestRunner runner, ITestReader reader, IResultsSummary summary, IFileSystem system,
                        DirectoryRunnerSetup setup)
 {
     _runner  = runner;
     _reader  = reader;
     _summary = summary;
     _system  = system;
     _setup   = setup;
 }
 public TestsGenerator(int maxReadersCount, int maxGeneratorsCount,
                       int maxWritersCount, ITestWriter writer, ITestReader reader)
 {
     this.maxGeneratorsCount = maxGeneratorsCount;
     this.maxReadersCount    = maxReadersCount;
     this.maxWritersCount    = maxWritersCount;
     this.writer             = writer;
     this.reader             = reader;
 }
Пример #4
0
 public DirectoryRunner(ITestRunner runner, ITestReader reader, IResultsSummary summary, IFileSystem system,
     DirectoryRunnerSetup setup)
 {
     _runner = runner;
     _reader = reader;
     _summary = summary;
     _system = system;
     _setup = setup;
 }
        public void Init()
        {
            outputDirectory = Path.Combine("..", "..", "TestDirectoryOutput");
            inputDirectory  = Path.Combine("..", "..", "TestDirectoryInput");

            writer    = new TestWriter(outputDirectory);
            reader    = new TestReader();
            generator = new TestsGenerator(1, 1, 1, writer, reader);
            generator.Generate(Directory.GetFiles(inputDirectory).ToList()).Wait();

            generatedUnit = ParseCompilationUnit(File.ReadAllText(Path.Combine(outputDirectory, "TestClasses.cs")));
        }
Пример #6
0
 public TestConverter(ITestReader reader, ITestWriter writer)
 {
     _reader = reader;
     _writer = writer;
 }
Пример #7
0
 public TestConverter(ITestReader reader, ITestWriter writer)
 {
     _reader = reader;
     _writer = writer;
 }
Пример #8
0
 public FolderTestLoader(ITestReader reader)
     : this(reader, Environment.CurrentDirectory)
 {
 }
Пример #9
0
 public FolderTestLoader(ITestReader reader, string folderPath)
 {
     TestReader = reader;
     FolderPath = folderPath;
 }
Пример #10
0
 public TestStorage(string path, ITestReader reader, string username)
     : base(path, reader, username)
 {
     this.tests       = new Dictionary <string, Testing>();
     this.CurrentTest = null;
 }