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() }); } }
private static List <ReleaseFileNameTestDataPoint> GetRandomizedTestData(Int32 count = 10) { var random = new Random(); List <ReleaseFileNameTestDataPoint> randomTestData = new List <ReleaseFileNameTestDataPoint>(); for (int i = 0; i < count; i++) { randomTestData.Add(CreateTestDataPointFromProperties(ModTestData.GenerateValidRandomizedModName(), ModVersionTestData.GenerateValidRandomizedModVersion())); } return(randomTestData); }