Example #1
0
        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());
        }
Example #2
0
 protected void SetUp()
 {
     attribute = new ReflectorPropertyAttribute("foo");
     factory   = new DefaultSerialiserFactory();
 }
		protected void SetUp()
		{
			attribute = new ReflectorPropertyAttribute("foo");
			factory = new DefaultSerialiserFactory();
		}