|  | @@ -6,6 +6,7 @@ namespace PSDTextTests
 | 
	
		
			
				|  |  |      public class PSDTextTests
 | 
	
		
			
				|  |  |      {
 | 
	
		
			
				|  |  |          private const string TestFile = "./testFiles/test.psd";
 | 
	
		
			
				|  |  | +        private const string NoTextPSD = "./testFiles/noText.psd";
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |          [Fact]
 | 
	
		
			
				|  |  |          public void ReadXMLFromPSD()
 | 
	
	
		
			
				|  | @@ -26,6 +27,18 @@ namespace PSDTextTests
 | 
	
		
			
				|  |  |              File.Delete(destination);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +        [Fact]
 | 
	
		
			
				|  |  | +        public void SaveAsXMLNoText()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            var test = new PSDText.PSDText(NoTextPSD);
 | 
	
		
			
				|  |  | +            Assert.Empty(test.TextData);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            var destination = "./test.xml";
 | 
	
		
			
				|  |  | +            test.SaveAsXML(destination);
 | 
	
		
			
				|  |  | +            Assert.True(File.Exists(destination));
 | 
	
		
			
				|  |  | +            File.Delete(destination);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |          [Fact]
 | 
	
		
			
				|  |  |          public void SaveAsJSON()
 | 
	
		
			
				|  |  |          {
 | 
	
	
		
			
				|  | @@ -37,5 +50,17 @@ namespace PSDTextTests
 | 
	
		
			
				|  |  |              Assert.True(File.Exists(destination));
 | 
	
		
			
				|  |  |              File.Delete(destination);
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +        [Fact]
 | 
	
		
			
				|  |  | +        public void SaveAsJSONNoText()
 | 
	
		
			
				|  |  | +        {
 | 
	
		
			
				|  |  | +            var test = new PSDText.PSDText(NoTextPSD);
 | 
	
		
			
				|  |  | +            Assert.Empty(test.TextData);
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            var destination = "./test.json";
 | 
	
		
			
				|  |  | +            test.SaveAsJSON(destination);
 | 
	
		
			
				|  |  | +            Assert.True(File.Exists(destination));
 | 
	
		
			
				|  |  | +            File.Delete(destination);
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  }
 |