Exemple #1
0
        private void CreateTestSource()
        {
            string fileName = _noCompile ? (_outputDll + ".cs") : GenerateTempFileName();

            using (TestSourceFile testSourceFile = CreateTestSourceFileObj(fileName))
            {
                testSourceFile.Generate();
                _testSourceFileName = testSourceFile.Name;
            }
        }
Exemple #2
0
        private void GenerateCsFile(ICollection exports)
        {
            string fileName = _output + ".cs";

            using (TestSourceFile file = new TestSourceFile(fileName, _input, _prefix, exports))
            {
                file.Generate();
            }

            Console.WriteLine("Wrote {0}", fileName);
        }