< Summary

Information
Class: AmbientServices.Test.TestAmbientService
Assembly: AmbientServices.Async.Test
File(s): /home/runner/work/AmbientServices.Async/AmbientServices.Async/AmbientServices.Async.Test/AmbientServices.Async.Test.cs
Tag: 76_25271648613
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 26
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
AssemblyInitialize(...)100%11100%
AssemblyCleanup()100%11100%

File(s)

/home/runner/work/AmbientServices.Async/AmbientServices.Async/AmbientServices.Async.Test/AmbientServices.Async.Test.cs

#LineLine coverage
 1using AmbientServices;
 2using Microsoft.VisualStudio.TestTools.UnitTesting;
 3using System;
 4using System.Linq;
 5using System.Reflection;
 6using System.Threading.Tasks;
 7
 8namespace AmbientServices.Test
 9{
 10    [TestClass]
 11    public class TestAmbientService
 12    {
 13        [AssemblyInitialize]
 14        public static void AssemblyInitialize(TestContext context)
 15        {
 116        }
 17
 18        [AssemblyCleanup]
 19        public static void AssemblyCleanup()
 20        {
 121            System.Threading.Tasks.ValueTask t = TraceBuffer.Flush();
 122            t.GetAwaiter().GetResult();
 123            FifoTaskScheduler.Stop();
 124        }
 25    }
 26}