mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
rm deprecated tests
This commit is contained in:
parent
a2fb045cc3
commit
0e2ebcc722
2 changed files with 1 additions and 37 deletions
|
|
@ -2,7 +2,7 @@
|
|||
"profiles": {
|
||||
"FilterLists.Agent": {
|
||||
"commandName": "Project",
|
||||
"commandLineArgs": "-a -v"
|
||||
"commandLineArgs": "-v"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using FilterLists.Agent.Extensions;
|
||||
using Xunit;
|
||||
|
||||
|
|
@ -22,40 +21,5 @@ public void GetExtension_UriWithExtension_ReturnsExtension()
|
|||
var sut = uri.GetExtension();
|
||||
Assert.Equal(".txt", sut);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void IsValidUrl_WithValidUrl_ReturnsTrue()
|
||||
{
|
||||
const string uriString = "https://www.google.com/";
|
||||
var uri = new Uri(uriString);
|
||||
var sut = uri.IsValidUrl();
|
||||
Assert.True(sut);
|
||||
}
|
||||
|
||||
[Fact]
|
||||
public void DistributeByHost_HasOverweightHost_DistributesEvenly()
|
||||
{
|
||||
var uris = new List<Uri>
|
||||
{
|
||||
new Uri("https://www.google.com/"),
|
||||
new Uri("https://www.google.com/"),
|
||||
new Uri("https://www.google.com/"),
|
||||
new Uri("https://www.facebook.com/"),
|
||||
new Uri("https://www.facebook.com/")
|
||||
};
|
||||
|
||||
var sut = uris.DistributeByHost();
|
||||
|
||||
var expected = new List<Uri>
|
||||
{
|
||||
new Uri("https://www.google.com/"),
|
||||
new Uri("https://www.facebook.com/"),
|
||||
new Uri("https://www.google.com/"),
|
||||
new Uri("https://www.facebook.com/"),
|
||||
new Uri("https://www.google.com/")
|
||||
};
|
||||
|
||||
Assert.Equal(expected, sut);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue