Refactor to api connections. Update Checker.
This commit is contained in:
21
UnitTests/ConfigTest.cs
Normal file
21
UnitTests/ConfigTest.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Microsoft.VisualStudio.TestTools.UnitTesting;
|
||||
using System;
|
||||
using PWAPPv2.Source;
|
||||
|
||||
namespace UnitTests
|
||||
{
|
||||
[TestClass]
|
||||
public class ConfigTest
|
||||
{
|
||||
[TestMethod]
|
||||
public void TestGetPracticeConfigs()
|
||||
{
|
||||
PWAPPv2.Source.Config.Configuration configuration = new PWAPPv2.Source.Config.Configuration(".\\Config\\PracticeConfig.xml");
|
||||
Assert.IsNotNull(configuration);
|
||||
|
||||
string apiKey = configuration.Get("pwapiid");
|
||||
Assert.IsNotNull(apiKey);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user