From 000978ccb47d164baa25653d23f9b01438f2c09d Mon Sep 17 00:00:00 2001 From: Ziya SARIKAYA Date: Wed, 25 Mar 2015 21:48:35 +0200 Subject: [PATCH] fix nunit-console issue --- FireSharp.Tests/FiresharpTests.cs | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/FireSharp.Tests/FiresharpTests.cs b/FireSharp.Tests/FiresharpTests.cs index 943390a..ba1d307 100644 --- a/FireSharp.Tests/FiresharpTests.cs +++ b/FireSharp.Tests/FiresharpTests.cs @@ -21,20 +21,22 @@ public class FiresharpTests : TestBase [TestFixtureSetUp] public async void TestFixtureSetUp() { + IFirebaseConfig config = new FirebaseConfig + { + AuthSecret = FirebaseSecret, + BasePath = BasePath + }; + _client = new FirebaseClient(config); //Uses Newtonsoft.Json Json Serializer + Task task1 = _client.DeleteAsync("todos"); Task task2 = _client.DeleteAsync("fakepath"); + await Task.WhenAll(task1, task2); } protected override void FinalizeSetUp() { - IFirebaseConfig config = new FirebaseConfig - { - AuthSecret = FirebaseSecret, - BasePath = BasePath - }; - _client = new FirebaseClient(config); //Uses Newtonsoft.Json Json Serializer - _client.DeleteAsync("todos").Wait(); + } [Test, Category("INTEGRATION"), Category("ASYNC")]