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

            annotatable.AddAnnotation("Foo", "Bar");

            Assert.Equal(
                CoreStrings.DuplicateAnnotation("Foo", annotatable.ToString()),
                Assert.Throws <InvalidOperationException>(() => annotatable.AddAnnotation("Foo", "Bar")).Message);
        }