Beispiel #1
0
        private XmlTestInfo(
            TestCaseAttribute testCaseAttribute, 
            MethodInfo methodInfo,
            XmlNode xmlElementPathNode)
        {
            this.Name = testCaseAttribute.TestName;
            this.Summary = testCaseAttribute.TestSummary;
            this.Priority = testCaseAttribute.Priority.ToString();
            this.Status = testCaseAttribute.Status.ToString();
            this.Author = testCaseAttribute.Author;
            this.TestCaseType = testCaseAttribute.TestCaseType.ToString();
            this.Description = testCaseAttribute.Description;
            
            if (methodInfo != null)
            {
                this.MethodInfo.AssemblyFile = methodInfo.DeclaringType.Assembly.FullName;
                this.MethodInfo.Class = methodInfo.DeclaringType.FullName;
                this.MethodInfo.Method = methodInfo.Name;
            }

            this.ElementInfo = new XmlTestElementInfo(xmlElementPathNode); 
        }
Beispiel #2
0
        private XmlTestInfo(
            TestCaseAttribute testCaseAttribute,
            MethodInfo methodInfo,
            XmlNode xmlElementPathNode)
        {
            this.Name         = testCaseAttribute.TestName;
            this.Summary      = testCaseAttribute.TestSummary;
            this.Priority     = testCaseAttribute.Priority.ToString();
            this.Status       = testCaseAttribute.Status.ToString();
            this.Author       = testCaseAttribute.Author;
            this.TestCaseType = testCaseAttribute.TestCaseType.ToString();
            this.Description  = testCaseAttribute.Description;

            if (methodInfo != null)
            {
                this.MethodInfo.AssemblyFile = methodInfo.DeclaringType.Assembly.FullName;
                this.MethodInfo.Class        = methodInfo.DeclaringType.FullName;
                this.MethodInfo.Method       = methodInfo.Name;
            }

            this.ElementInfo = new XmlTestElementInfo(xmlElementPathNode);
        }