< Summary

Class:Azure.Core.TestFramework.RandomExtensions
Assembly:Azure.Core.TestFramework
File(s):C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.TestFramework\src\RandomExtensions.cs
Covered lines:3
Uncovered lines:0
Coverable lines:3
Total lines:17
Line coverage:100% (3 of 3)
Covered branches:0
Total branches:0

Metrics

MethodCyclomatic complexity Line coverage Branch coverage
NewGuid(...)-100%100%

File(s)

C:\Git\azure-sdk-for-net\sdk\core\Azure.Core.TestFramework\src\RandomExtensions.cs

#LineLine coverage
 1// Copyright (c) Microsoft Corporation. All rights reserved.
 2// Licensed under the MIT License.
 3
 4using System;
 5
 6namespace Azure.Core.TestFramework
 7{
 8    public static class RandomExtensions
 9    {
 10        public static Guid NewGuid(this Random random)
 11        {
 33177812            var bytes = new byte[16];
 33177813            random.NextBytes(bytes);
 33177814            return new Guid(bytes);
 15        }
 16    }
 17}

Methods/Properties

NewGuid(...)