public void AccdbGetModifiedTimeUtcTest()
        {
            var file = new OfficeFile(@"..\..\SampleFiles\Test.Accdb");
            file.OpenFile();

            Assert.AreEqual(new DateTime(2016, 3, 1, 16, 03, 02, DateTimeKind.Utc), file.ModifiedTimeUtc);

            file.CloseFile();
        }
        public void AccdbGetCompanyTest()
        {
            var file = new OfficeFile(@"..\..\SampleFiles\Test.Accdb");
            file.OpenFile();

            Assert.AreEqual("Test Company", file.Company);

            file.CloseFile();
        }
        public void AccdbGetAuthorTest()
        {
            var file = new OfficeFile(@"..\..\SampleFiles\Test.Accdb");
            file.OpenFile();

            Assert.AreEqual("Test Author", file.Author);

            file.CloseFile();
        }
        public void MdbGetCreatedTimeUtcTest()
        {
            var file = new OfficeFile(@"..\..\SampleFiles\Test.Mdb");
            file.OpenFile();

            Assert.AreEqual(new DateTime(2016, 3, 1, 15, 24, 25, DateTimeKind.Utc), file.CreatedTimeUtc);

            file.CloseFile();
        }
        public void AccdbGetCustomPropertiesTest()
        {
            var file = new OfficeFile(@"..\..\SampleFiles\Test.Accdb");
            file.OpenFile();

            var expectedValue = new Dictionary<string, object>() { { "Test1", "Test" }, { "Test2", 1 } };

            CollectionAssert.AreEqual((ICollection)expectedValue, (ICollection)file.CustomProperties);

            file.CloseFile();
        }
 public void AccdbOpenAndCloseFileTest()
 {
     var file = new OfficeFile(@"..\..\SampleFiles\Test.Accdb");
     file.OpenFile();
     file.CloseFile();
 }