public async Task WriteToInterleavedFileAsync_SingleSequence_ShouldRejectNegativeLineLength()
        {
            var             identifier     = new LocalIdentifier("value");
            var             header         = new Header(identifier);
            IActualSequence actualSequence = NucleicAcidSequence.Parse("ATCG");
            var             sequence       = new Sequence(header, actualSequence);

            await SequenceFileWriter.WriteToInterleavedFileAsync(sequence, Path, -1);
        }
        public void WriteToInterleavedFile_SingleSequence_ShouldRejectLineLengthOfZero()
        {
            var             identifier     = new LocalIdentifier("value");
            var             header         = new Header(identifier);
            IActualSequence actualSequence = NucleicAcidSequence.Parse("ATCG");
            var             sequence       = new Sequence(header, actualSequence);

            SequenceFileWriter.WriteToInterleavedFile(sequence, Path, 0);
        }
        public async Task WriteToSequentialFileAsync_SingleSequence_ShouldRejectNullPath()
        {
            var             identifier     = new LocalIdentifier("value");
            var             header         = new Header(identifier);
            IActualSequence actualSequence = NucleicAcidSequence.Parse("ATCG");
            var             sequence       = new Sequence(header, actualSequence);

            await SequenceFileWriter.WriteToSequentialFileAsync(sequence, null);
        }
        public async Task WriteToSequentialFileAsync_MultipleSequences_ShouldRejectNullPath()
        {
            var                    identifier     = new LocalIdentifier("value");
            var                    header         = new Header(identifier);
            IActualSequence        actualSequence = NucleicAcidSequence.Parse("ATCG");
            var                    sequence       = new Sequence(header, actualSequence);
            IEnumerable <Sequence> sequences      = new Sequence[] { sequence };

            await SequenceFileWriter.WriteToSequentialFileAsync(sequences, null);
        }
        public async Task WriteToInterleavedFileAsync_MultipleSequences_ShouldRejectLineLengthOfZero()
        {
            var                    identifier     = new LocalIdentifier("value");
            var                    header         = new Header(identifier);
            IActualSequence        actualSequence = NucleicAcidSequence.Parse("ATCG");
            var                    sequence       = new Sequence(header, actualSequence);
            IEnumerable <Sequence> sequences      = new Sequence[] { sequence };

            await SequenceFileWriter.WriteToInterleavedFileAsync(sequences, Path, 0);
        }
        public void WriteToInterleavedFile_MultipleSequences_ShouldRejectNegativeLineLength()
        {
            var                    identifier     = new LocalIdentifier("value");
            var                    header         = new Header(identifier);
            IActualSequence        actualSequence = NucleicAcidSequence.Parse("ATCG");
            var                    sequence       = new Sequence(header, actualSequence);
            IEnumerable <Sequence> sequences      = new Sequence[] { sequence };

            SequenceFileWriter.WriteToInterleavedFile(sequences, Path, -1);
        }
 public async Task WriteToInterleavedFileAsync_SingleSequence_ShouldRejectNullData()
 {
     await SequenceFileWriter.WriteToInterleavedFileAsync((Sequence)null, Path);
 }
 public async Task WriteToSequentialFileAsync_MultipleSequences_ShouldRejectNullData()
 {
     await SequenceFileWriter.WriteToSequentialFileAsync((IEnumerable <Sequence>) null, Path);
 }
 public void WriteToSequentialFile_MultipleSequences_ShouldRejectNullData()
 {
     SequenceFileWriter.WriteToSequentialFile((IEnumerable <Sequence>)null, Path);
 }
 public void WriteToInterleavedFile_SingleSequence_ShouldRejectNullData()
 {
     SequenceFileWriter.WriteToInterleavedFile((Sequence)null, Path);
 }