Beispiel #1
0
        public void Added_annotation_type_is_consistent()
        {
            var annotatable = new Annotatable();

            annotatable.AddAnnotations(new[] { new ConventionAnnotation("Foo", "Bar", ConfigurationSource.Convention) });

            Assert.Equal(typeof(Annotation), annotatable.FindAnnotation("Foo").GetType());

            var conventionAnnotatable = new Model();

            conventionAnnotatable.AddAnnotations(new[] { new Annotation("Foo", "Bar") });

            Assert.Equal(typeof(ConventionAnnotation), conventionAnnotatable.FindAnnotation("Foo").GetType());
        }