public void TestValidateString() { Assert.True(GAValidator.ValidateString(GATestUtilities.GetRandomString(64), false)); Assert.True(GAValidator.ValidateString(GATestUtilities.GetRandomString(64), true)); Assert.True(GAValidator.ValidateString(GATestUtilities.GetRandomString(10), false)); Assert.True(GAValidator.ValidateString(GATestUtilities.GetRandomString(10), true)); Assert.True(GAValidator.ValidateString(null, true)); Assert.True(GAValidator.ValidateString("", true)); Assert.False(GAValidator.ValidateString(GATestUtilities.GetRandomString(80), false)); Assert.False(GAValidator.ValidateString(GATestUtilities.GetRandomString(80), true)); Assert.False(GAValidator.ValidateString(null, false)); Assert.False(GAValidator.ValidateString("", false)); }