Пример #1
0
        public void CheckSameReferenceWithDifferentPagesProducesSingleEntryInBibliography()
        {
            var citeProc     = new CiteProcRunner(MlaCslStyle, () => DocearDatabase);
            var citeInserter = new TestCitationInserter(citeProc);

            var citation1 = new EntryAndPagePair(DocearDatabase["price65"], "1");
            var citation2 = new EntryAndPagePair(DocearDatabase["price65"], "2");

            var entryAndPagePairs =
                new[]
            {
                citation1,
                citation2
            };

            var inlineCitation1 = citeInserter.CreateInlineCitation(citation1);
            var inlineCitation2 = citeInserter.CreateInlineCitation(citation2);

            var jsCitations = new object[0];
            var jsResult    = citeProc.RestoreProcessorState(jsCitations);



            var bibliographyResult = citeProc.MakeBibliography();
        }
Пример #2
0
        public void Test01(int x)
        {
            var citeproc    = new CiteProcRunner(HavardCslStyle, () => DocearDatabase);
            var listOfItems = new[] { "Agarwal05", "Agrawal08", "Aho75" };

            var result = citeproc.UpdateItems(listOfItems, false, true);

            foreach (var s in result)
            {
                Console.WriteLine(s);
            }

            var bib = citeproc.MakeBibliography();

            foreach (var entry in bib.Entries)
            {
                Console.WriteLine(entry);
            }
        }