Skip to content
Permalink
Browse files

add tests

  • Loading branch information...
ignatandrei committed Oct 30, 2019
1 parent 2112817 commit 655dcea975d16a50183212b2070d47a30d2885d6
@@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "InfoValutarDOS", "InfoValut
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfoValutarShared", "InfoValutarShared\InfoValutarShared.csproj", "{9614EE27-D460-40C9-B4B4-8104E7FB1288}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "InfovalutarTest", "InfovalutarTest\InfovalutarTest.csproj", "{44AD9504-F9CE-46DC-A8E9-760DC1C51DC9}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -21,6 +23,10 @@ Global
{9614EE27-D460-40C9-B4B4-8104E7FB1288}.Debug|Any CPU.Build.0 = Debug|Any CPU
{9614EE27-D460-40C9-B4B4-8104E7FB1288}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9614EE27-D460-40C9-B4B4-8104E7FB1288}.Release|Any CPU.Build.0 = Release|Any CPU
{44AD9504-F9CE-46DC-A8E9-760DC1C51DC9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44AD9504-F9CE-46DC-A8E9-760DC1C51DC9}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44AD9504-F9CE-46DC-A8E9-760DC1C51DC9}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44AD9504-F9CE-46DC-A8E9-760DC1C51DC9}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -0,0 +1,20 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netcoreapp3.0</TargetFramework>

<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="xunit" Version="2.4.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.0" />
<PackageReference Include="coverlet.collector" Version="1.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\InfoValutarShared\InfoValutarShared.csproj" />
</ItemGroup>

</Project>
@@ -0,0 +1,25 @@
using InfoValutarShared;
using System;
using System.Threading.Tasks;
using Xunit;

namespace InfovalutarTest
{
public class TestNBR
{
[Fact]
public async Task TestLive()
{
var nbr = new GetNBRExchange();
await foreach(var e in nbr.GetActualRates())
{
if(e.ExchangeFrom == "EUR")
{
Assert.True(true);
return;
}
}
Assert.True(false, "Should find EUR");
}
}
}

0 comments on commit 655dcea

Please sign in to comment.
You can’t perform that action at this time.