public void Test()
 {
     MinLengthClass Temp = new MinLengthClass();
     Temp.ItemA = "Test";
     Temp.Validate();
     Temp.ItemA = "Tes";
     Assert.Throws<ValidationException>(() => Temp.Validate());
 }
        public void Test()
        {
            var Temp = new MinLengthClass();

            Temp.ItemA = "Test";
            Temp.Validate();
            Temp.ItemA = "Tes";
            Assert.Throws <ValidationException>(() => Temp.Validate());
        }