Example #1
0
        // ReSharper disable once UnusedMember.Global; used by RubberduckWeb to load serialized declarations.
        public static void AddTestLibrary(this RubberduckParserState state, Stream stream)
        {
            var reader       = new XmlPersistableDeclarations();
            var deserialized = reader.Load(stream);

            AddTestLibrary(state, deserialized);
        }
Example #2
0
        public static void AddTestLibrary(this RubberduckParserState state, string serialized)
        {
            var reader       = new XmlPersistableDeclarations();
            var deserialized = reader.Load(Path.Combine("Resolver", serialized));

            AddTestLibrary(state, deserialized);
        }