< Summary

Class:DecentralandEntityShould
Assembly:SceneTests
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Scene/Tests/DecentralandEntityShould.cs
Covered lines:6
Uncovered lines:0
Coverable lines:6
Total lines:19
Line coverage:100% (6 of 6)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
CleanUpEntityComponents()0%110100%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/MainScripts/DCL/Controllers/Scene/Tests/DecentralandEntityShould.cs

#LineLine coverage
 1using DCL.Components;
 2using DCL.Models;
 3using NSubstitute;
 4using NUnit.Framework;
 5
 6public class DecentralandEntityShould
 7{
 8    [Test]
 9    public void CleanUpEntityComponents()
 10    {
 111        DecentralandEntity entity = new DecentralandEntity();
 112        IEntityComponent component = Substitute.For<IEntityComponent>();
 113        entity.components.Add(CLASS_ID_COMPONENT.NONE, component);
 14
 115        entity.Cleanup();
 16
 117        component.Received().Cleanup();
 118    }
 19}

Methods/Properties

CleanUpEntityComponents()