Beispiel #1
0
        private static void CreateTest(ListOfTestResource aTestList, string aTitle, TestResourceResult aResult, string aResultDescription, DateTime aStartTime, DateTime aEndTime, string aContent)
        {
            TestResource test = new TestResource
            {
                Title             = aTitle,
                Result            = aResult,
                ResultDescription = aResultDescription,
                Content           = new XmlDocument().CreateCDataSection(aContent),
                StartedUtc        = aStartTime,
                FinishedUtc       = aEndTime
            };

            Assert.Check(test.Valid());

            aTestList.Tests.Add(test);
        }