public static IEnumerable <object[]> RandomReleaseDownloadUrlsWithModNameTooLong(Int32 count = 3) { for (int i = 0; i < count; i++) { var resultStringBuilder = new StringBuilder(); resultStringBuilder.Append("/download/"); resultStringBuilder.Append(ModTestData.GenerateRandomizedModNameTooLong().Replace(" ", "%20")); resultStringBuilder.Append("/"); resultStringBuilder.Append(ReleaseDownloadUrlTestData.GenerateValidRandomizedReleaseDownloadUrlToken()); yield return(new object[] { resultStringBuilder.ToString() }); } }
public static IEnumerable <object[]> RandomReleaseFileNamesWithModNameTooLong(Int32 count = 3) { for (int i = 0; i < count; i++) { var resultStringBuilder = new StringBuilder(); resultStringBuilder.Append(ModTestData.GenerateRandomizedModNameTooLong()); resultStringBuilder.Append("_"); resultStringBuilder.Append(ModVersionTestData.GenerateValidRandomizedModVersion()); resultStringBuilder.Append(".zip"); yield return(new object[] { resultStringBuilder.ToString() }); } }