public void AddRawAttribute() { var annotations = new DataAnnotations<TestEntity>(); annotations.AnnotateProperty(x => x.Name).AddRawAttribute(new NonSerializedAttribute()); Assert.AreEqual(1, annotations.Annotations.Count); }