System.IO.FileCleanupTestBase.GetTestFilePath C# (CSharp) Méthode

GetTestFilePath() protected méthode

Gets a test file full path that is associated with the call site.
protected GetTestFilePath ( int index = null, [ memberName = null, [ lineNumber ) : string
index int An optional index value to use as a suffix on the file name. Typically a loop index.
memberName [ The member name of the function calling this method.
lineNumber [ The line number of the function calling this method.
Résultat string
        protected string GetTestFilePath(int? index = null, [CallerMemberName] string memberName = null, [CallerLineNumber] int lineNumber = 0)
        {
            return Path.Combine(TestDirectory, GetTestFileName(index, memberName, lineNumber));
        }