diff --git a/FeedlySharp.Tests/AccountTests.cs b/FeedlySharp.Tests/AccountTests.cs new file mode 100644 index 0000000..568d5ee --- /dev/null +++ b/FeedlySharp.Tests/AccountTests.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FeedlySharp.Tests +{ + class AccountTests + { + } +} diff --git a/FeedlySharp.Tests/TestsBase.cs b/FeedlySharp.Tests/TestsBase.cs new file mode 100644 index 0000000..557e80d --- /dev/null +++ b/FeedlySharp.Tests/TestsBase.cs @@ -0,0 +1,42 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using Xunit; + +namespace FeedlySharp.Tests +{ + public class TestsBase : IDisposable + { + protected FeedlyClient client; + + // setup + public TestsBase() + { + + } + + + // teardown + public void Dispose() + { + + } + + + // async throws + public static async Task ThrowsAsync(Func func) + { + var expected = typeof(TException); + Type actual = null; + try + { + await func(); + } + catch (Exception e) + { + actual = e.GetType(); + } + Assert.Equal(expected, actual); + } + } +} diff --git a/FeedlySharp.Tests/packages.config b/FeedlySharp.Tests/packages.config new file mode 100644 index 0000000..3eb1f07 --- /dev/null +++ b/FeedlySharp.Tests/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file