Пример #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
 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);
     }
 }
Пример #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;
     }
 }