Пример #1
0
        protected override TestResults CompileResults()
        {
            var serializer = new TheSerializer();

            using (FileStream stream = File.OpenRead(Path.Combine(BaseDirectory, ResultFileName)))
            {
                return serializer.ToTypeof<TestResults>(stream);
            }
        }
Пример #2
0
        protected override TestResults CompileResults()
        {
            var serializer = new TheSerializer();

            using (FileStream stream = File.OpenRead(Path.Combine(BaseDirectory, ResultFileName)))
            {
                return(serializer.ToTypeof <TestResults>(stream));
            }
        }
Пример #3
0
        void SerializeResultsToFile(TestResults results)
        {
            var serializer = new TheSerializer();

            string xml = serializer.ToXml(results);

            string solutionPath = Path.GetDirectoryName(_configuration.SolutionPath);

            string testFilePath = Path.Combine(solutionPath, "TestResult.xml");

            File.WriteAllText(testFilePath, xml);
        }
Пример #4
0
 MSpec LoadMSpecResults()
 {
     try
     {
         FileStream stream       = File.OpenRead(Path.Combine(_currentdirectory, "mspecresults.xml"));
         var        serializer   = new TheSerializer();
         var        mspecResults = serializer.ToTypeof <MSpec>(stream);
         return(mspecResults);
     }
     catch (Exception e)
     {
         return(null);
     }
 }
Пример #5
0
        void SerializeResultsToFile(TestResults results)
        {
            var serializer = new TheSerializer();

            string xml = serializer.ToXml(results);

            string solutionPath = Path.GetDirectoryName(_configuration.SolutionPath);

            string testFilePath = Path.Combine(solutionPath, "TestResult.xml");

            File.WriteAllText(testFilePath, xml);
        }
Пример #6
0
 MSpec LoadMSpecResults()
 {
     try
     {
         FileStream stream = File.OpenRead(Path.Combine(_currentdirectory, "mspecresults.xml"));
         var serializer = new TheSerializer();
         var mspecResults = serializer.ToTypeof<MSpec>(stream);
         return mspecResults;
     }
     catch (Exception e)
     {
         return null;
     }
 }