< Summary

Class:GDX.Developer.Reports.NUnit.TestCase
Assembly:GDX
File(s):D:/BuildAgent/work/GDX-Documentation/Projects/GDX_Development/Packages/com.dotbunny.gdx/GDX/Developer/Reports/NUnit/TestCase.cs
Covered lines:15
Uncovered lines:12
Coverable lines:27
Total lines:41
Line coverage:55.5% (15 of 27)
Covered branches:0
Total branches:0
Covered methods:30
Total methods:33
Method coverage:90.9% (30 of 33)

Coverage History

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
GetCategory()0%20400%

File(s)

D:/BuildAgent/work/GDX-Documentation/Projects/GDX_Development/Packages/com.dotbunny.gdx/GDX/Developer/Reports/NUnit/TestCase.cs

#LineLine coverage
 1// Copyright (c) 2020-2022 dotBunny Inc.
 2// dotBunny licenses this file to you under the BSL-1.0 license.
 3// See the LICENSE file in the project root for more information.
 4
 5namespace GDX.Developer.Reports.NUnit
 6{
 7    public class TestCase
 8    {
 49        public int Id { get; set; }
 2310        public string Name { get; set; }
 411        public string FullName { get; set; }
 412        public string MethodName { get; set; }
 413        public string ClassName { get; set; }
 414        public string RunState { get; set; }
 415        public string Seed { get; set; }
 3516        public string Result { get; set; }
 417        public string StartTime { get; set; }
 418        public string EndTime { get; set; }
 1819        public float Duration { get; set; }
 420        public int Asserts { get; set; }
 1921        public string Message { get; set; }
 822        public string Output { get; set; }
 423        public Properties Properties { get; set; }
 24
 025        public string StackTrace { get; set; }
 26
 27        public string GetCategory()
 028        {
 029            string foundProperty = "Default";
 030            foreach (Property p in Properties.Property)
 031            {
 032                if (p.Name == "Category" && p.Value != "Performance")
 033                {
 034                    foundProperty = p.Value;
 035                }
 036            }
 37
 038            return foundProperty;
 039        }
 40    }
 41}