public void Read_Test_Results_From_Xml_Returns_Tests_List() { var reader = new MsTestResultReader(); var result = reader.ReadTestResult(Xml()); Assert.AreEqual(2, result.Tests.Count); }
public void Read_Test_Results_From_Empty_Xml_Returns_Null() { var reader = new MsTestResultReader(); var result = reader.ReadTestResult(string.Empty); Assert.IsNull(result); }
public void Read_Test_Results_From_Xml_Returns_Test_Run_Summary() { var reader = new MsTestResultReader(); var result = reader.ReadTestResult(Xml()); Assert.IsNotNull(result); Assert.AreEqual("Failed", result.Outcome); Assert.AreEqual(2, result.Total); Assert.AreEqual(2, result.Executed); Assert.AreEqual(1, result.Passed); Assert.AreEqual(1, result.Failed); }