public void ShouldCreateCollectionSerialiserWhenCollectionPropertyIsPassed() { DefaultSerialiserFactory factory = new DefaultSerialiserFactory(); PropertyInfo property = typeof(Project).GetProperty("Triggers"); ReflectorPropertyAttribute attribute = (ReflectorPropertyAttribute)property.GetCustomAttributes(false)[0]; IXmlSerialiser serialiser = factory.Create(ReflectorMember.Create(property), attribute); Assert.AreEqual(typeof(XmlCollectionSerialiser), serialiser.GetType()); }
protected void SetUp() { attribute = new ReflectorPropertyAttribute("foo"); factory = new DefaultSerialiserFactory(); }