From 36c29b855cb195a19a554849f64e5b21bb2b8ccd Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Sun, 7 Mar 2021 22:29:19 +0000 Subject: [PATCH] Add unit test for issue 325. --- Aaru.Tests/Issues/325.cs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Aaru.Tests/Issues/325.cs diff --git a/Aaru.Tests/Issues/325.cs b/Aaru.Tests/Issues/325.cs new file mode 100644 index 000000000..51e3ae6be --- /dev/null +++ b/Aaru.Tests/Issues/325.cs @@ -0,0 +1,21 @@ +using System.IO; +using NUnit.Framework; + +namespace Aaru.Tests.Issues +{ + /* + * SilasLaspada commented on Mar 19, 2020 + * + * "Exception: Attempted to divide by zero." when opening a CUE/TRK image. The cue itself was hardcoded to a + * specific path that I changed to a relative one. ImgBurn and IsoBuster can read the files fine. The exact files + * I used are in https://drive.google.com/drive/folders/1tlixznMyuQiL_D57OLIDIPeX7a99yHqx?usp=sharing. + */ + + // 20200418 CLAUNIA: Fixed in e92c1e77418bb3fc1c9971b9bc76f47f86f2f76a + [TestFixture] + public class _325 : OpticalImageReadIssueTest + { + public override string DataFolder => Path.Combine(Consts.TEST_FILES_ROOT, "Issues", "Fixed", "issue325"); + public override string TestFile => "TEST.cue"; + } +} \ No newline at end of file