public void CreateStreamReturnsNewTransmissionStreamInstance() { var underTest = new Transmission(TransmissionType.DOWNLOAD_NEW_FILE, this.path); using (var stream = new MemoryStream()) using (var newStream = underTest.CreateStream(stream)) using (var secondNewStream = underTest.CreateStream(stream)) { Assert.That(newStream, Is.Not.Null); Assert.That(newStream, Is.InstanceOf <TransmissionStream>()); Assert.That(secondNewStream, Is.Not.Null); Assert.That(secondNewStream, Is.InstanceOf <TransmissionStream>()); Assert.That(newStream != secondNewStream, Is.True); } }