Microsoft.Protocols.TestSuites.Common.Common.GenerateResourceName C# (CSharp) 메소드

GenerateResourceName() 공개 정적인 메소드

A method used to generate a unique name with protocol short name (without dash "-"), resource name and time stamp.
public static GenerateResourceName ( ITestSite site, string resourceName ) : string
site ITestSite An instance of interface ITestSite which provides logging, assertions, /// and adapters for test code onto its execution context.
resourceName string A parameter that represents the resource name which is used to combine the unique name
리턴 string
        public static string GenerateResourceName(ITestSite site, string resourceName)
        {
            string newPrefixOfResourceName = GeneratePrefixOfResourceName(site);
            return string.Format(@"{0}_{1}_{2}", newPrefixOfResourceName, resourceName, FormatCurrentDateTime());
        }

Same methods

Common::GenerateResourceName ( ITestSite site, string resourceName, uint index ) : string
Common