Esempio n. 1
0
        public bool check_file_renaming( string input_file_name, System.DateTime input_file_lastmod, string expected_out_name, System.DateTime expected_out_lastmod)
        {
            UT.Assert.IsNotNull(input_file_name);
            Stamper stamper = new Stamper();

            string actual_out_name = null;
            System.DateTime actual_out_lastmod;
            stamper.GetRenameInfo(input_file_name, input_file_lastmod, out actual_out_name, out actual_out_lastmod);

            UT.Assert.AreEqual(expected_out_name, actual_out_name);
            UT.Assert.AreEqual(expected_out_lastmod, actual_out_lastmod);

            return true;
        }
Esempio n. 2
0
 public void check_stamp_parsing2(string input_file_name, string expected_remainder, string expected_year, string expected_month, string expected_day)
 {
     Stamper stamper = new Stamper();
     ParseResult res = stamper.parse(input_file_name);
     check_stamp_parsing(res, expected_remainder, expected_year, expected_month, expected_day);
 }
Esempio n. 3
0
        public void check_no_stamp(string input_file_name)
        {
            Stamper stamper = new Stamper();
            ParseResult res = stamper.parse(input_file_name);
            UT.Assert.IsNotNull(res);
            UT.Assert.IsNull(res.Stamp);

        }