Пример #1
0
        public void RemoveAnnotation_KeyDoesNotExist()
        {
            var annotatable = new AnnotatableObject();
            var key         = new AnnotationKey <int>();

            Assert.False(annotatable.RemoveAnnotation(key));
        }
Пример #2
0
        public void RemoveAnnotation_KeyExists()
        {
            var annotatable = new AnnotatableObject();
            var key         = new AnnotationKey <int>();

            annotatable.SetAnnotation(key, 10);

            Assert.True(annotatable.RemoveAnnotation(key));
        }