Exemplo n.º 1
0
        public void TestValidateEventIdLength()
        {
            Assert.True(GAValidator.ValidateEventIdLength(GATestUtilities.GetRandomString(40)));
            Assert.True(GAValidator.ValidateEventIdLength(GATestUtilities.GetRandomString(32)));
            Assert.True(GAValidator.ValidateEventIdLength("sdfdf"));

            Assert.False(GAValidator.ValidateEventIdLength(GATestUtilities.GetRandomString(80)));
            Assert.False(GAValidator.ValidateEventIdLength(null));
            Assert.False(GAValidator.ValidateEventIdLength(""));
        }