public static void ClassInitialise(TestContext context)
 {
     IoC.MapHardcodedRegistrations();
     GlobalIntermediateLanguageConstants.LoadOpCodes();
     visualisableType = VisualisableTypeTestData.FullModel<Car>(new Container());
     subject = VisualisableTypeWithAssociationsDataAdaptor.ExtractPersistentData(visualisableType);
 }
Exemplo n.º 2
0
        public void SanityCheck4()
        {
            var dataToSerialise = new TypeVisualiserLayoutFile();
            var dataContents = new VisualisableTypeSubjectData
            {
                Associations = new[] { new FieldAssociationData(), new StaticAssociationData(), new ConsumeAssociationData() }
            };
            dataToSerialise.Subject = dataContents;

            var serialiser = new XmlSerializer(typeof(TypeVisualiserLayoutFile));
            using (var writer = new XmlTextWriter("SanityTest.xml", Encoding.UTF8))
            {
                serialiser.Serialize(writer, dataToSerialise);
            }
        }