public void TestPlainTxt()
        {
            var plainTextConversion = new TxtConversion();
            var loadedPalette       = plainTextConversion.FromContents("./TestRead/test-plain.txt", "test-plain");

            Assert.IsTrue(Enumerable.SequenceEqual(_expectedColors, loadedPalette.Colors));
            Assert.AreEqual("test-plain", loadedPalette.Title);
            Assert.AreEqual(string.Empty, loadedPalette.Description);
        }
        public void TestPaintNetTxt()
        {
            var plainTextConversion = new TxtConversion();
            var loadedPalette       = plainTextConversion.FromContents("./TestRead/test-paintnet.txt");

            Assert.IsTrue(Enumerable.SequenceEqual(_expectedColors, loadedPalette.Colors));
            Assert.AreEqual("TestPalette", loadedPalette.Title);
            Assert.AreEqual("My Description", loadedPalette.Description);
        }
        public void TestPaintNetTxt()
        {
            var txtConversion = new TxtConversion {
                WritePaintNetMetadata = true
            };
            var palette = GetSamplePaletteWithMetadata();
            var actual  = txtConversion.PaletteToFormat(palette);

            var expected = File.ReadAllText("./ExpectedWrite/expected-paintnet.txt");

            Assert.AreEqual(expected, actual);
        }