Exemple #1
0
        public void SaveAsJSON()
        {
            var test = new PSDText.PSDText(TestFile);

            var destination = "./test.json";

            test.SaveAsJSON(destination);
            Assert.True(File.Exists(destination));
            File.Delete(destination);
        }
Exemple #2
0
        public void SaveAsJSONWrongPath()
        {
            var test = new PSDText.PSDText(TestFile);

            Assert.Throws <ArgumentNullException>(() => test.SaveAsJSON(null));
        }
Exemple #3
0
        public void ReadXMLFromPSD()
        {
            var test = new PSDText.PSDText(TestFile);

            Assert.NotEmpty(test.ExtractedStrings);
        }