private static void AssertChanged(string origPath, bool isFolder, params string[] tags) { origPath = Utils.GetTestFolder(origPath); // Move the file var orig = new TaggedFilePath(origPath, isFolder); var changed = TagUtils.ChangeTagsAndSave(orig, tags); // Assert that it has been renamed. Assert.IsFalse(orig.Exists()); Assert.IsTrue(changed.Exists()); // Assert that the new path actually has the new tags bool matches = changed.Tags.SequenceEqual(tags); Assert.IsTrue(matches); }