public void TestGetTracking() { var filenames = new List<Tuple<string, string>>() { new Tuple<string, string>("Original.docx", "68f59b66-f335-45f0-9afe-58bedcc9e32d") }; filenames.ForEach(delegate(Tuple<string, string> x) { string testfile = Workshare.TestUtils.TestFileUtils.MakeRootPathAbsolute(Path.Combine(_path, x.Item1)); string tempfile = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetFileName(testfile)); System.IO.File.Copy(testfile, tempfile, true); var intelligentDocument = new IntelligentDocument(); intelligentDocument.SetFileName(tempfile); Assert.IsTrue(intelligentDocument.IsDocumentBeingTracked()); Assert.IsTrue(String.Compare(x.Item2, intelligentDocument.GetDocumentTrackingId(), true) == 0); }); }