< Summary

Class:SensorTestBase
Assembly:bamlab.test
File(s):/github/workspace/Assets/Tests/SensorTestBase.cs
Covered lines:0
Uncovered lines:11
Coverable lines:11
Total lines:25
Line coverage:0% (0 of 11)
Covered branches:0
Total branches:0
Covered methods:0
Total methods:2
Method coverage:0% (0 of 2)

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
Setup()0%2100%
Teardown()0%6200%

File(s)

/github/workspace/Assets/Tests/SensorTestBase.cs

#LineLine coverage
 1using System;
 2using System.Reflection;
 3using NUnit.Framework;
 4using UnityEngine;
 5
 6public abstract class SensorTestBase : TestBase {
 7  protected SimManager simManager;
 8
 9  [SetUp]
 010  public virtual void Setup() {
 11    // Initialize SimManager
 012    var simManagerGameObject = new GameObject("SimManager");
 013    simManager = simManagerGameObject.AddComponent<SimManager>();
 014    simManager.SimulationConfig = new SimulationConfig();
 015    SimManager.Instance = simManager;
 016  }
 17
 18  [TearDown]
 019  public virtual void Teardown() {
 20    // Clean up SimManager
 021    if (simManager != null) {
 022      GameObject.DestroyImmediate(simManager.gameObject);
 023    }
 024  }
 25}

Methods/Properties

Setup()
Teardown()