コード例 #1
0
        public void SetVernacularMaterialsAndContentType_CompatibleWithAudience_IncludedInMetsData()
        {
            _helper.SetAudience(AudienceType.Vernacular);
            _helper.SetVernacularMaterialsAndContentType(VernacularMaterialsType.LiteracyEducation_Riddles);
            var data = _helper.GetMetadata();

            Assert.AreEqual("{\"dc.title\":\"Test Title\",\"" +
                            RampArchivingDlgViewModel.kAudience + "\":\"" + RampArchivingDlgViewModel.kAudienceVernacular + "\",\"" +
                            RampArchivingDlgViewModel.kVernacularMaterialsType + "\":\"" + RampArchivingDlgViewModel.kVernacularMaterialGeneral + "\",\"" +
                            RampArchivingDlgViewModel.kVernacularContent + "\":\"Riddles\"}",
                            data);
        }