Skip to content

Commit 7bc47ac

Browse files
Removed VisualStudio dependency
1 parent 0443b6e commit 7bc47ac

File tree

4 files changed

+13
-12
lines changed

4 files changed

+13
-12
lines changed

SendGrid/UnitTest/UnitTest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
using System;
22
using System.Net;
33
using System.Net.Http;
4-
using Microsoft.VisualStudio.TestTools.UnitTesting;
4+
using NUnit.Framework;
55
using Newtonsoft.Json.Linq;
66
using SendGrid;
77

88
namespace UnitTest
99
{
10-
[TestClass]
10+
[TestFixture]
1111
public class UnitTest
1212
{
1313
static string _baseUri = "https://api.sendgrid.com/";
1414
static string _apiKey = Environment.GetEnvironmentVariable("SENDGRID_APIKEY", EnvironmentVariableTarget.User);
1515
public Client client = new Client(_apiKey, _baseUri);
1616
private static string _api_key_id = "";
1717

18-
[TestMethod]
18+
[Test]
1919
public void ApiKeysIntegrationTest()
2020
{
2121
TestGet();

SendGrid/UnitTest/UnitTests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
<HintPath>..\packages\Newtonsoft.Json.7.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
4242
<Private>True</Private>
4343
</Reference>
44+
<Reference Include="nunit.framework, Version=2.6.4.14350, Culture=neutral, PublicKeyToken=96d09a1eb7f44a77, processorArchitecture=MSIL">
45+
<HintPath>..\packages\NUnit.2.6.4\lib\nunit.framework.dll</HintPath>
46+
<Private>True</Private>
47+
</Reference>
4448
<Reference Include="System" />
4549
<Reference Include="System.Net.Http" />
4650
</ItemGroup>
@@ -50,11 +54,7 @@
5054
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
5155
</ItemGroup>
5256
</When>
53-
<Otherwise>
54-
<ItemGroup>
55-
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
56-
</ItemGroup>
57-
</Otherwise>
57+
<Otherwise />
5858
</Choose>
5959
<ItemGroup>
6060
<Compile Include="UnitTest.cs" />

SendGrid/UnitTest/app.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<runtime>
44
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
55
<dependentAssembly>
6-
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
7-
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0"/>
6+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
7+
<bindingRedirect oldVersion="0.0.0.0-7.0.0.0" newVersion="7.0.0.0" />
88
</dependentAssembly>
99
</assemblyBinding>
1010
</runtime>
11-
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/></startup></configuration>
11+
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" /></startup></configuration>

SendGrid/UnitTest/packages.config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Newtonsoft.Json" version="7.0.1" targetFramework="net452" />
4+
<package id="NUnit" version="2.6.4" targetFramework="net45" />
45
</packages>

0 commit comments

Comments
 (0)