예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        public async Task WriteToSequentialStreamAsync_MultipleSequences_ShouldRejectNullSequenceCollection()
        {
            var stream = new MemoryStream(new byte[] { }, true);

            await SequenceStreamWriter.WriteToSequentialStreamAsync((IEnumerable <Sequence>) null, stream);
        }
예제 #4
0
        public async Task WriteToSequentialStreamAsync_SingleSequence_ShouldRejectNullSequence()
        {
            var stream = new MemoryStream(new byte[] { }, true);

            await SequenceStreamWriter.WriteToSequentialStreamAsync((Sequence)null, stream);
        }