示例#1
0
        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);
        }
示例#2
0
        public void Read_Test_Results_From_Empty_Xml_Returns_Null()
        {
            var reader = new MsTestResultReader();

            var result = reader.ReadTestResult(string.Empty);

            Assert.IsNull(result);
        }
示例#3
0
        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);
        }