Exemple #1
0
        public void Change_NewName()
        {
            var file = new File("path");

            file.Title      = "Title";
            file.Performers = new [] { "Performers One", "Performers Two" };
            var expected = "Performers One, Performers Two - Title";

            var item = new ToName {
                FileForChange = file
            };

            item.Change();
            var actual = file.Name;

            Assert.AreEqual(expected, actual);
        }
Exemple #2
0
        public void Change_NullFileToChange_Exception()
        {
            var item = new ToName();

            item.Change();
        }