-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Vitaly Sushilov
committed
May 10, 2018
1 parent
04afa6b
commit 5375edc
Showing
80 changed files
with
4,514 additions
and
2,015 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using EveJimaCore; | ||
using log4net; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace EJTests | ||
{ | ||
[TestClass] | ||
public class ApiZKillboardTests | ||
{ | ||
private ILog logger = LogManager.GetLogger(typeof(ApiZKillboardTests)); | ||
|
||
[TestMethod] | ||
public void TestMethod1() | ||
{ | ||
log4net.Config.XmlConfigurator.Configure(); | ||
|
||
var pilotExist = ZKillboardApi.IsCharacter("2112098220", logger); | ||
|
||
Assert.IsTrue(pilotExist); | ||
|
||
var pilotNotExist = ZKillboardApi.IsCharacter("21120982209121312312", logger); | ||
|
||
Assert.IsFalse(pilotNotExist); | ||
|
||
var corporationExist = ZKillboardApi.IsCorporation("98459743", logger); | ||
|
||
Assert.IsTrue(corporationExist); | ||
|
||
var corporationNotExist = ZKillboardApi.IsCorporation("98459743500352", logger); | ||
|
||
Assert.IsFalse(corporationNotExist); | ||
|
||
var solarSystemExist = ZKillboardApi.IsSolarSystem("30002187", logger); | ||
|
||
Assert.IsTrue(solarSystemExist); | ||
|
||
var solarSystemNotExist = ZKillboardApi.IsSolarSystem("3000218712312312", logger); | ||
|
||
Assert.IsFalse(solarSystemNotExist); | ||
|
||
var allianceExist = ZKillboardApi.IsAlliance("1354830081", logger); | ||
|
||
Assert.IsTrue(allianceExist); | ||
|
||
var allianceNotExist = ZKillboardApi.IsAlliance("1354830081313213123", logger); | ||
|
||
Assert.IsFalse(allianceNotExist); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.Windows.Forms; | ||
using EveJimaCore.EjEnvironment; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace EJTests.EjEnvironment | ||
{ | ||
[TestClass] | ||
public class ClipboardTests | ||
{ | ||
[TestMethod] | ||
public void Test_SetValue() | ||
{ | ||
var clipboard = new ClipboardEntity(); | ||
|
||
Clipboard.SetText("Test1"); | ||
|
||
var clipboardString = clipboard.GetValue(); | ||
|
||
Assert.AreEqual("Test1", clipboardString); | ||
} | ||
|
||
[TestMethod] | ||
public void Test_GetPreviousValue() | ||
{ | ||
var clipboard = new ClipboardEntity(); | ||
|
||
Clipboard.SetText("Test1"); | ||
|
||
clipboard.GetValue(); | ||
|
||
Clipboard.SetText("Test2"); | ||
|
||
clipboard.GetValue(); | ||
|
||
var clipboardString = clipboard.GetPreviousValue(); | ||
|
||
Assert.AreEqual("Test1", clipboardString); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using EveJimaCore.BLL.Browser; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace EJTests | ||
{ | ||
[TestClass] | ||
public class InterceptorTests | ||
{ | ||
[TestMethod] | ||
public void FullFlow() | ||
{ | ||
var interceptor = new Interceptor(true); | ||
|
||
interceptor.StartIntercepting(); | ||
interceptor.StopIntercepting(); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
using EveJimaCore; | ||
|
||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
|
||
namespace EJTests | ||
{ | ||
[TestClass] | ||
public class InternalBrowserTests | ||
{ | ||
[TestMethod] | ||
public void CreateInternalBrowserTest() | ||
{ | ||
//var internalBrowser = new InternalWebBrowser(); | ||
|
||
//Assert.IsTrue(internalBrowser.U); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.