public void TestScanForDescendantObject2()
		{
			var obj = new GraphValidationFixture.Container2();
			var ts = new TypeScanner(obj.GetType());
			var vc = new Dictionary<Type, ValidationUnitCollection>();
			ts.RecursiveScan(vc);
			Assert.AreEqual(3, vc.Count, "Wrong Number of Attributes scanned");
			var lt = new List<Type>();
			lt.AddRange(vc.Keys);
			Assert.AreEqual(typeof (GraphValidationFixture.Container2), lt[0], "Wrong Attribute Type");
			Assert.AreEqual(typeof (GraphValidationFixture.Container1), lt[1], "Wrong Attribute Type");
			Assert.AreEqual(typeof (GraphValidationFixture.Contained1), lt[2], "Wrong Attribute Type");
		}
        public void TestScanForDescendantObject2()
        {
            var obj = new GraphValidationFixture.Container2();
            var ts  = new TypeScanner(obj.GetType());
            var vc  = new Dictionary <Type, ValidationUnitCollection>();

            ts.RecursiveScan(vc);
            Assert.AreEqual(3, vc.Count, "Wrong Number of Attributes scanned");
            var lt = new List <Type>();

            lt.AddRange(vc.Keys);
            Assert.AreEqual(typeof(GraphValidationFixture.Container2), lt[0], "Wrong Attribute Type");
            Assert.AreEqual(typeof(GraphValidationFixture.Container1), lt[1], "Wrong Attribute Type");
            Assert.AreEqual(typeof(GraphValidationFixture.Contained1), lt[2], "Wrong Attribute Type");
        }