Пример #1
0
        public void CanGetXsltFromResource()
        {
            ProjectInfo info = WeSayWordsProject.Project.GetProjectInfoForAddin();
            string      path = info.LocateFile("lift2sfm.xsl");
            TempFile    t    = null;

            if (!string.IsNullOrEmpty(path))
            {
                t = TempFile.CopyOf(path);
                File.Delete(path);
            }
            Stream stream = LiftTransformer.GetXsltStream(info, "lift2sfm.xsl");

            Assert.IsNotNull(stream);
            if (t != null)
            {
                File.Copy(t.Path, path);
            }
        }