Beispiel #1
0
        static TestVBAMacroReader()
        {
            Dictionary <POIDataSamples, String> _expectedMacroContents = new Dictionary <POIDataSamples, String>();

            POIDataSamples[] dataSamples =
            {
                POIDataSamples.GetSpreadSheetInstance(),
                POIDataSamples.GetSlideShowInstance(),
                POIDataSamples.GetDocumentInstance(),
                POIDataSamples.GetDiagramInstance()
            };
            foreach (POIDataSamples sample in dataSamples)
            {
                _expectedMacroContents.Add(sample, ReadVBA(sample));
            }
            expectedMacroContents = _expectedMacroContents;
        }
Beispiel #2
0
 public void HDGFfromNPOIFS()
 {
     FromNPOIFS(POIDataSamples.GetDiagramInstance(), "SimpleMacro.vsd");
 }
Beispiel #3
0
 public void XDGFfromFile()
 {
     FromFile(POIDataSamples.GetDiagramInstance(), "SimpleMacro.vsdm");
 }