Exemplo n.º 1
0
        public static void Main()
        {
            SealedType.Test();
            UnsealedType.Test();

            BasicAnnotationWithNoDerivedClasses.Test();
            MultipleValuesWithAnnotations.Test(0);
            MultipleValuesWithAnnotations.Test(1);
            MultipleValuesWithAndWithoutAnnotationsWarns.Test(0);
            MultipleValuesWithAndWithoutAnnotationsWarns.Test(1);
            MultipleValuesWithAndWithoutAnnotationsWarns.Test(2);

            SingleDerivedWithAnnotatedParent.Test();
            DerivedWithAnnotationOnDerived.Test();
            DerivedWithBaseAndAnnotatedInterface.Test();
            DeepHierarchy.Test();
            DeepInterfaceHierarchy.Test();

            ConstructorAsSource.Test();

            InterfaceSeenFirst.Test();
            AnnotationsRequestedOnImplementation.Test();
            AnnotationsRequestedOnInterface.Test();

            AllAnnotationsAreApplied.Test();
            SealedWithAnnotation.Test();

            DiamondShapeWithUnannotatedInterface.Test();
            DiamondShapeWithAnnotatedInterface.Test();

            ApplyingAnnotationIntroducesTypesToApplyAnnotationTo.Test();
            ApplyingAnnotationIntroducesTypesToApplyAnnotationToViaInterfaces.Test();
            ApplyingAnnotationIntroducesTypesToApplyAnnotationToMultipleAnnotations.Test();
            ApplyingAnnotationIntroducesTypesToApplyAnnotationToEntireType.Test();
        }
Exemplo n.º 2
0
 public static void Main()
 {
     BasicAnnotationWithNoDerivedClasses.Test();
     BasicNoAnnotationWithNoDerivedClasses.Test();
 }