public async Task WriteToSequentialStreamAsync_SingleSequence_ShouldRejectNullStream() { var identifier = new LocalIdentifier("value"); var header = new Header(identifier); IActualSequence actualSequence = NucleicAcidSequence.Parse("ATCG"); var sequence = new Sequence(header, actualSequence); await SequenceStreamWriter.WriteToSequentialStreamAsync(sequence, null); }
public async Task WriteToSequentialStreamAsync_MultipleSequences_ShouldRejectNullStream() { 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 SequenceStreamWriter.WriteToSequentialStreamAsync(sequences, null); }
public async Task WriteToSequentialStreamAsync_MultipleSequences_ShouldRejectNullSequenceCollection() { var stream = new MemoryStream(new byte[] { }, true); await SequenceStreamWriter.WriteToSequentialStreamAsync((IEnumerable <Sequence>) null, stream); }
public async Task WriteToSequentialStreamAsync_SingleSequence_ShouldRejectNullSequence() { var stream = new MemoryStream(new byte[] { }, true); await SequenceStreamWriter.WriteToSequentialStreamAsync((Sequence)null, stream); }