< Summary

Class:Tests.FPSDisplayTests
Assembly:FPSDisplayTests
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/Debugging/FPSDisplay/Tests/FPSDisplayTests.cs
Covered lines:0
Uncovered lines:5
Coverable lines:5
Total lines:30
Line coverage:0% (0 of 5)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
LinealFPSTest()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/Debugging/FPSDisplay/Tests/FPSDisplayTests.cs

#LineLine coverage
 1using DCL;
 2using DCL.FPSDisplay;
 3using NUnit.Framework;
 4using System;
 5using System.Collections;
 6using UnityEngine;
 7using UnityEngine.TestTools;
 8
 9namespace Tests
 10{
 11    [Explicit]
 12    public class FPSDisplayTests : IntegrationTestSuite_Legacy
 13    {
 14        [Test]
 15        public void LinealFPSTest()
 16        {
 017            LinealBufferFPSCounter counter = new LinealBufferFPSCounter();
 18
 19            const float tenMillis = 0.01f;
 20            const float expectedFps = 100.0f;
 21
 022            for (int i = 0; i < 100; i++)
 23            {
 024                counter.AddDeltaTime(tenMillis);
 25            }
 26
 027            Assert.AreEqual(counter.CurrentFPSCount(), expectedFps);
 028        }
 29    }
 30}

Methods/Properties

LinealFPSTest()