Skip to content

Commit

Permalink
Generic types implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
camposdelima committed Aug 8, 2017
1 parent 56dc548 commit 8dd97c3
Show file tree
Hide file tree
Showing 56 changed files with 72,894 additions and 16 deletions.
21 changes: 21 additions & 0 deletions src/Lothur.Web/Lothur.Web.Tests/Lothur.Web.Tests.csproj
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>
43 changes: 43 additions & 0 deletions src/Lothur.Web/Lothur.Web.Tests/UnitTest1.cs
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);
}
}
}
Loading

0 comments on commit 8dd97c3

Please sign in to comment.