public void Mf_GetMasterFileFromDatabase_Test_PartiallyNullOrEmptyInput()
 {
     var emptyProperties = new Dictionary <string, object>[]
     {
         new Dictionary <string, object>(),
         new Dictionary <string, object>()
     };
     var invalidMasterFile = MasterFile.GetMasterFileFromDB(emptyProperties);
 }
        public void Mf_GetMasterFileFromDatabase_Test_PopulatesPropertyDictionaries()
        {
            var masterFile = MasterFile.GetMasterFileFromDB(testPropertiesFromDatabase);

            if (masterFile.TagLibProps == null || masterFile.TagLibProps.Count == 0)
            {
                Assert.Fail();
            }
            if (masterFile.SysIOProps == null || masterFile.SysIOProps.Count == 0)
            {
                Assert.Fail();
            }
        }
        public void Db_InsertUpdateDeleteRecord_Test_DatabaseRecordUpdatedAfterUpdate()
        {
            db.InsertUpdateDeleteRecord(masterFile1, StatementType.Delete);
            db.InsertUpdateDeleteRecord(masterFile1, StatementType.Insert);
            masterFile1.TagLibProps["Artist"] = "Unit Test Sample Artist";
            db.InsertUpdateDeleteRecord(masterFile1, StatementType.Update);
            var masterFileResult = MasterFile.GetMasterFileFromDB(db.QueryRecord(masterFile1.Filepath));

            if (masterFileResult.TagLibProps["Artist"].ToString() != masterFile1.TagLibProps["Artist"].ToString())
            {
                Assert.Fail();
            }
            db.InsertUpdateDeleteRecord(masterFile1, StatementType.Delete);
        }
        public void Mf_GetMasterFileFromDatabase_Test_ValidInput()
        {
            var masterFile = MasterFile.GetMasterFileFromDB(testPropertiesFromDatabase);

            Assert.IsInstanceOfType(masterFile, typeof(MasterFile));
        }