public void ToStringTest() { var migration = new TestMigration("C:\\test\\this_is_the_file_name.txt"); string result = migration.ToString(); Assert.AreEqual("this_is_the_file_name.txt", result, "The result should just be the filename"); }