public void RemoveAnnotation_KeyDoesNotExist() { var annotatable = new AnnotatableObject(); var key = new AnnotationKey <int>(); Assert.False(annotatable.RemoveAnnotation(key)); }
public void RemoveAnnotation_KeyExists() { var annotatable = new AnnotatableObject(); var key = new AnnotationKey <int>(); annotatable.SetAnnotation(key, 10); Assert.True(annotatable.RemoveAnnotation(key)); }