Exemple #1
0
        public void Copy_Replacing_Old_File()
        {
            /* seed both source and target */
            _pwans.MoveToSource("an", "bn");
            _pwans.MoveToTarget("ao");

            _action.Act();

            /* both files has been replaced*/
            Assert.AreEqual(true, _pwans.TargetIs("an", "bn"));
            Assert.AreEqual(false, _pwans.TargetIs("ao", "bn"));
        }
        public void TestMoveMethods()
        {
            _dummies.MoveToSource("ao", "bn");
            _dummies.MoveToTarget("an", "en");
            _dummies.TargetIs("an", "dn");

            // empty directory get filled

            // single file get overridden (with read only  flag)

            // new file stays

            // exception on the file that absent in source

            // exception on the file that is locked in destination
        }