ExporterTests.cs 551 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Text;
  5. using System.Windows.Media.Imaging;
  6. using PixiEditor.Models.IO;
  7. using Xunit;
  8. namespace PixiEditorTests.ModelsTests.IO
  9. {
  10. public class ExporterTests
  11. {
  12. private const string FilePath = "test.file";
  13. [Fact]
  14. public void TestThatSaveAsPngSavesFile()
  15. {
  16. Exporter.SaveAsPng(FilePath, 10, 10, BitmapFactory.New(10,10));
  17. Assert.True(File.Exists(FilePath));
  18. File.Delete(FilePath);
  19. }
  20. }
  21. }