public void TestValidateLongString() { Assert.True(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(8192), false)); Assert.True(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(8192), true)); Assert.True(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(10), false)); Assert.True(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(10), true)); Assert.True(GAValidator.ValidateLongString(null, true)); Assert.True(GAValidator.ValidateLongString("", true)); Assert.False(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(8193), false)); Assert.False(GAValidator.ValidateLongString(GATestUtilities.GetRandomString(8193), true)); Assert.False(GAValidator.ValidateLongString(null, false)); Assert.False(GAValidator.ValidateLongString("", false)); }