public void CreateStreamBeforeStart () { var provider = new StreamProvider (Engine, "testDir", Torrent); Assert.ThrowsAsync<InvalidOperationException> (() => provider.CreateHttpStreamAsync (provider.Files[0])); }