public void TestValidateArrayOfStrings() { Assert.True(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", GATestUtilities.GetRandomString(3), GATestUtilities.GetRandomString(10), GATestUtilities.GetRandomString(7))); Assert.True(GAValidator.ValidateArrayOfStrings(3, 10, true, "test", new string[0])); Assert.False(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", GATestUtilities.GetRandomString(3), GATestUtilities.GetRandomString(12), GATestUtilities.GetRandomString(7))); Assert.False(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", GATestUtilities.GetRandomString(3), "", GATestUtilities.GetRandomString(7))); Assert.False(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", GATestUtilities.GetRandomString(3), null, GATestUtilities.GetRandomString(7))); Assert.False(GAValidator.ValidateArrayOfStrings(2, 10, false, "test", GATestUtilities.GetRandomString(3), GATestUtilities.GetRandomString(10), GATestUtilities.GetRandomString(7))); Assert.False(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", new string[0])); Assert.False(GAValidator.ValidateArrayOfStrings(3, 10, false, "test", (string)null)); }