< Summary

Class:Azure.Core.TestFramework.RecordedTestBase`1
Assembly:Azure.Core.TestFramework
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.TestFramework\src\RecordedTestBase{TEnvironment}.cs
Covered lines:12
Uncovered lines:0
Coverable lines:12
Total lines:28
Line coverage:100% (12 of 12)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
.ctor(...)-100%100%
.ctor(...)-100%100%
StartTestRecording()-100%100%
get_TestEnvironment()-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.TestFramework\src\RecordedTestBase{TEnvironment}.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4namespace Azure.Core.TestFramework
 5{
 6    public abstract class RecordedTestBase<TEnvironment> : RecordedTestBase where TEnvironment: TestEnvironment, new()
 7    {
 5448        protected RecordedTestBase(bool isAsync) : base(isAsync)
 9        {
 54410            TestEnvironment = new TEnvironment();
 54411            TestEnvironment.Mode = Mode;
 54412        }
 13
 12614        protected RecordedTestBase(bool isAsync, RecordedTestMode mode) : base(isAsync, mode)
 15        {
 12616            TestEnvironment = new TEnvironment();
 12617            TestEnvironment.Mode = Mode;
 12618        }
 19
 20        public override void StartTestRecording()
 21        {
 426422            base.StartTestRecording();
 369223            TestEnvironment.SetRecording(Recording);
 369224        }
 25
 1918526        public TEnvironment TestEnvironment { get; }
 27    }
 28}