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 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); }