gmarokov/dotnet-trx2sonar

View on GitHub
TrxToSonar/Model/Sonar/TestCase.cs

Summary

Maintainability
A
0 mins
Test Coverage
using System.Xml.Serialization;

namespace TrxToSonar.Model.Sonar
{
    public class TestCase
    {
        public TestCase()
        {
        }

        public TestCase(string name, long duration)
        {
            Name = name;
            Duration = duration;
        }

        [XmlAttribute(AttributeName = "name")]
        public string Name { get; set; }

        [XmlAttribute(AttributeName = "duration")]
        public long Duration { get; set; }

        [XmlElement(ElementName = "error")]
        public Error Error { get; set; }

        [XmlElement(ElementName = "skipped")]
        public Skipped Skipped { get; set; }

        [XmlElement(ElementName = "failure")]
        public Failure Failure { get; set; }
    }
}