public void CtorPropertyNames() { var e = new IgnorePropertiesAttribute (new[] { "foo", "bar" }); Assert.AreEqual (2, e.PropertyNames.Count); Assert.AreEqual ("foo", e.PropertyNames[0]); Assert.AreEqual ("bar", e.PropertyNames[1]); }
public void CtorPropertyName() { var e = new IgnorePropertiesAttribute ("tag"); Assert.AreEqual (1, e.PropertyNames.Count); Assert.AreEqual ("tag", e.PropertyNames.First()); }