Ejemplo n.º 1
0
 public virtual void test_of_validated_invalid()
 {
     assertThrowsIllegalArg(() => SampleValidatedType.of(null));
     assertThrowsIllegalArg(() => SampleValidatedType.of("ABc"));
 }
Ejemplo n.º 2
0
        public virtual void test_of_validated()
        {
            SampleValidatedType test = SampleValidatedType.of("ABC");

            assertEquals(test.ToString(), "ABC");
        }