public void ShouldNotAutoGenerateSpecifiedTaggedValues() { ICctsRepository ccRepository = CreateRepository(); ICdtLibrary cdtLibrary = ccRepository.GetCdtLibraryByPath(CdtLibraryTestRepository.PathToCdtLibrary()); ICdt cdtText = ccRepository.GetCdtByPath(CdtLibraryTestRepository.PathToCdtText()); CdtSpec cdtSpec = CdtSpec.CloneCdt(cdtText); cdtSpec.DictionaryEntryName = "cdt1"; cdtSpec.UniqueIdentifier = "{1-2-3}"; ICdt updatedCdt = cdtLibrary.UpdateCdt(cdtText, cdtSpec); Assert.That(updatedCdt.UniqueIdentifier, Is.EqualTo("{1-2-3}")); Assert.That(updatedCdt.DictionaryEntryName, Is.EqualTo("cdt1")); }
public void ShouldAutoGenerateClonedTaggedValues() { ICctsRepository ccRepository = CreateRepository(); ICdtLibrary cdtLibrary = ccRepository.GetCdtLibraryByPath(CdtLibraryTestRepository.PathToCdtLibrary()); ICdt cdtText = ccRepository.GetCdtByPath(CdtLibraryTestRepository.PathToCdtText()); CdtSpec cdtSpec = CdtSpec.CloneCdt(cdtText); cdtSpec.Name = "cdt1"; ICdt cdt = cdtLibrary.CreateCdt(cdtSpec); Assert.That(cdt.UniqueIdentifier, Is.Not.Null); Assert.That(cdt.UniqueIdentifier, Is.Not.Empty); Assert.That(cdt.UniqueIdentifier, Is.Not.EqualTo(cdtText.UniqueIdentifier)); Assert.That(cdt.DictionaryEntryName, Is.EqualTo("cdt1. Type")); }