コード例 #1
0
        public void GetSourceFilesForMetsData_ListContainsOnlySessionMetaFile_ReturnsCorrectMetsData()
        {
            var fileLists = new Dictionary <string, Tuple <IEnumerable <string>, string> >();

            fileLists[string.Empty] = new Tuple <IEnumerable <string>, string>(new[] { "blah.session" }, "Message to display.");

            var expected = "\"" + RampArchivingDlgViewModel.kDefaultKey + "\":\"blah.session\"" + RampArchivingDlgViewModel.kSeparator + "\"" +
                           RampArchivingDlgViewModel.kFileDescription + "\":\"MyApp Session Metadata (XML)\"" + RampArchivingDlgViewModel.kSeparator + "\"" +
                           RampArchivingDlgViewModel.kFileRelationship + "\":\"" +
                           RampArchivingDlgViewModel.kRelationshipSource + "\"";

            Assert.AreEqual(expected, _helper.GetSourceFilesForMetsData(fileLists).ElementAt(0));
        }