private static void ExecuteTest(Sequences.Sequences sequences, ulong[] sequence, SequenceToItsLocalElementLevelsConverter <ulong> sequenceToItsLocalElementLevelsConverter, ISequenceIndex <ulong> index, OptimalVariantConverter <ulong> optimalVariantConverter) { index.Add(sequence); var optimalVariant = optimalVariantConverter.Convert(sequence); var readSequence1 = sequences.ToList(optimalVariant); Assert.True(sequence.SequenceEqual(readSequence1)); }
public StringToUnicodeSequenceConverter(ILinks <TLink> links, IConverter <string, IList <TLink> > stringToUnicodeSymbolListConverter, ISequenceIndex <TLink> index, IConverter <IList <TLink>, TLink> listToSequenceLinkConverter, TLink unicodeSequenceMarker) : this(links, stringToUnicodeSymbolListConverter, new UnicodeSymbolsListToUnicodeSequenceConverter <TLink>(links, index, listToSequenceLinkConverter, unicodeSequenceMarker)) { }
public StringToUnicodeSequenceConverter(ILinks <TLink> links, IConverter <char, TLink> charToUnicodeSymbolConverter, ISequenceIndex <TLink> index, IConverter <IList <TLink>, TLink> listToSequenceLinkConverter, TLink unicodeSequenceMarker) : this(links, new StringToUnicodeSymbolsListConverter <TLink>(charToUnicodeSymbolConverter), index, listToSequenceLinkConverter, unicodeSequenceMarker) { }
public UnicodeSymbolsListToUnicodeSequenceConverter(ILinks <TLink> links, ISequenceIndex <TLink> index, IConverter <IList <TLink>, TLink> listToSequenceLinkConverter, TLink unicodeSequenceMarker) : base(links) { _index = index; _listToSequenceLinkConverter = listToSequenceLinkConverter; _unicodeSequenceMarker = unicodeSequenceMarker; }