Dominion.TestOutput.GetFileNameForType C# (CSharp) Method

GetFileNameForType() private static method

private static GetFileNameForType ( PlayerAction playerActions, int gameCount, string logType ) : string
playerActions PlayerAction
gameCount int
logType string
return string
        private static string GetFileNameForType(PlayerAction[] playerActions, int gameCount, string logType)
        {
            var stringBuilder = new System.Text.StringBuilder();
            stringBuilder.Append(playerActions[0].PlayerName);
            for (int i = 1; i < playerActions.Length; ++i)
            {
                stringBuilder.Append(" VS ");
                stringBuilder.Append(playerActions[i].PlayerName);
            }
            stringBuilder.Append(".");
            stringBuilder.Append(logType);
            stringBuilder.Append(gameCount == 0 ? "" : "." + gameCount.ToString());
            stringBuilder.Append(".txt");

            string fileName = GetOutputFilename(stringBuilder.ToString());

            return fileName;
        }