-
Notifications
You must be signed in to change notification settings - Fork 3
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
1 parent
56dc548
commit 8dd97c3
Showing
56 changed files
with
72,894 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>netcoreapp1.1</TargetFramework> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="15.0.0" /> | ||
<PackageReference Include="xunit" Version="2.2.0" /> | ||
<PackageReference Include="xunit.runner.visualstudio" Version="2.2.0" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<ProjectReference Include="..\Lothur.Web.csproj" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" /> | ||
</ItemGroup> | ||
|
||
</Project> |
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,43 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
using OpenQA.Selenium; | ||
using Xunit; | ||
|
||
namespace Lothur.Web.Tests | ||
{ | ||
public class PageAutomationTest:Lothur.Web.PageAutomation<Task> | ||
{ | ||
const string PageExpectedAddress = "http://www.google.com.br"; | ||
const string DriverServerAddress = "http://localhost:9515"; | ||
|
||
public PageAutomationTest() : base( | ||
new Uri(PageExpectedAddress), | ||
new Uri(DriverServerAddress), | ||
new OpenQA.Selenium.Remote.DesiredCapabilities()) | ||
{ | ||
|
||
} | ||
|
||
public override Task Execute() | ||
{ | ||
return Task.CompletedTask; | ||
} | ||
|
||
[Fact] | ||
public void IsExpectedHostAddress() | ||
{ | ||
Assert.Equal( | ||
new Uri(PageExpectedAddress).Host, | ||
new Uri(this.Driver.Url).Host | ||
); | ||
} | ||
|
||
[Fact] | ||
public void IsCompleted() | ||
{ | ||
Task execution = Execute(); | ||
|
||
Assert.True(execution.IsCompleted); | ||
} | ||
} | ||
} |
Oops, something went wrong.