Example #1
0
        static SyncConfiguration GetValidConfig()
        {
            var config = new SyncConfiguration();

            config.m_src         = Testing.GetTestDirectory() + "\\testsync\\src";
            config.m_destination = Testing.GetTestDirectory() + "\\testsync\\dest";
            return(config);
        }
Example #2
0
        static void TestMethod_ValidationShouldFailIfIntersection2()
        {
            var config = GetValidConfig();

            config.m_src         = Testing.GetTestDirectory() + "\\testSync";
            config.m_destination = Testing.GetTestDirectory() + "\\testsync\\dest";
            Utils.AssertEq(false, SyncConfiguration.Validate(config));
        }
Example #3
0
        public static void RunTests()
        {
            if (!File.Exists(Testing.GetTestDirectory() + @"\testsync\src\Images\b.png"))
            {
                MessageBox.Show("Please unzip testFiles.zip to " + Path.GetFullPath(Testing.GetTestDirectory()) + @"\testsync");
                throw new Exception("Path not found.");
            }

            SyncConfiguration.s_disableMessageBox = true;
            try
            {
                Testing.CallAllTestMethods(typeof(RbcpyTests), null);
            }
            finally
            {
                SyncConfiguration.s_disableMessageBox = false;
            }
        }