Skip to content

Commit 0f7dcd0

Browse files
author
Nicholas Bergesen
authored
Merge pull request #4 from Nowongu/master
Update tests
2 parents df4268b + 89c2f4e commit 0f7dcd0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

UnitTests/LootTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public class LootTest
99
{
1010
private const string UserAgent = "FakeAgent";
1111

12-
private IRobots _robots = new Robots(websiteUri: "https://loot.co.za", userAgent: UserAgent);
12+
private IRobots _robots = new Robots(userAgent: UserAgent);
1313

1414
[SetUp]
1515
public void Setup()
1616
{
1717
using (var sr = new StreamReader("lootRobots.txt"))
1818
{
19-
_robots.Load(sr.ReadToEnd()).Wait();
19+
_robots.LoadRobotsContent(sr.ReadToEnd()).Wait();
2020
}
2121
}
2222

UnitTests/TakealotTest.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ public class TakealotTest
99
{
1010
private const string UserAgent = "FakeAgent";
1111

12-
private IRobots _robots = new Robots(websiteUri: "https://takealot.com", userAgent: UserAgent);
12+
private IRobots _robots = new Robots(userAgent: UserAgent);
1313

1414
[SetUp]
1515
public void Setup()
1616
{
1717
using (var sr = new StreamReader("takealotRobots.txt"))
1818
{
19-
_robots.Load(sr.ReadToEnd()).Wait();
19+
_robots.LoadRobotsContent(sr.ReadToEnd()).Wait();
2020
}
2121
}
2222

0 commit comments

Comments
 (0)