Exemple #1
0
        protected void TestStruct(Type type)
        {
            IStruct        @struct       = TypeCache.Structs[type.Name()];
            string         namespaceName = new FindNamespaceForStructVisitor(@struct).Result;
            LoadedDocument document      = CreateLoadedDocument(new StructFactory(@struct).Value, namespaceName);
            string         documentText  = document.ToSourceCode();

            Verify(type, documentText);
        }
Exemple #2
0
        protected void TestStaticClass(Type type)
        {
            IStaticClass   @class        = TypeCache.StaticClasses[type.Name()];
            string         namespaceName = new FindNamespaceForClassVisitor(@class).Result;
            LoadedDocument document      = CreateLoadedDocument(new StaticClassFactory(@class).Value, namespaceName);
            string         documentText  = document.ToSourceCode();

            Verify(type, documentText);
        }