Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jericho committed May 6, 2016
1 parent bc80622 commit 289909c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CakeMail.RestClient.UnitTests/CakeMailRestClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@ public void RestClient_constructor()
var proxy = apiClient.Proxy;

// Assert
Assert.AreEqual(userAgent[0], "CakeMail .NET REST Client");
#if DEBUG
Assert.AreEqual(userAgent[1], "1.0.0");
#else
Assert.AreEqual(userAgentParts[0], "CakeMail .NET REST Client");

// Appveyor changes the build number with every commit, therefore we don't know ahead of time what the version will be.
// However, we do know that it shouldn't be 0.0.0
Assert.AreNotEqual(userAgent[1], "0.0.0");
#endif
Assert.AreNotEqual(userAgentParts[1], "0.0.0");

Assert.AreEqual(new Uri($"https://{mockHost}"), baseUrl);
Assert.AreEqual(mockTimeout, timeout);
Assert.AreEqual(new Uri(string.Format("http://{0}:{1}", mockProxyHost, mockProxyPort)), ((WebProxy)proxy).Address);
Expand Down

0 comments on commit 289909c

Please sign in to comment.