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); }
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); }