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

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