protected override TestResults CompileResults() { var serializer = new TheSerializer(); using (FileStream stream = File.OpenRead(Path.Combine(BaseDirectory, ResultFileName))) { return serializer.ToTypeof<TestResults>(stream); } }
protected override TestResults CompileResults() { var serializer = new TheSerializer(); using (FileStream stream = File.OpenRead(Path.Combine(BaseDirectory, ResultFileName))) { return(serializer.ToTypeof <TestResults>(stream)); } }
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); } }
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; } }