// 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); }
public static void AddTestLibrary(this RubberduckParserState state, string serialized) { var reader = new XmlPersistableDeclarations(); var deserialized = reader.Load(Path.Combine("Resolver", serialized)); AddTestLibrary(state, deserialized); }