File tree Expand file tree Collapse file tree 8 files changed +13
-16
lines changed Expand file tree Collapse file tree 8 files changed +13
-16
lines changed Original file line number Diff line number Diff line change 11using System . Linq ;
2- using Xunit ;
32using NScrape . Forms ;
3+ using Xunit ;
44
5- namespace NScrape . Test {
5+ namespace NScrape . Test . Forms {
66 public class HtmlFormDefinitionTests {
77 [ Fact ]
88 public void TestSingleFormTextsAndDropdown ( ) {
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Linq ;
4- using Xunit ;
54using NScrape . Forms ;
5+ using Xunit ;
66
7- namespace NScrape . Test {
7+ namespace NScrape . Test . Forms {
88 public class HtmlFormTests {
99 private class TestScraper : Scraper {
1010 public TestScraper ( string html ) : base ( html ) {
Original file line number Diff line number Diff line change 6565 <Compile Include =" NScrapeExtensionTests.cs" />
6666 <Compile Include =" WebResponseTests.cs" />
6767 <Compile Include =" NScrapeUtilityTryParseHttpDateTests.cs" />
68- <Compile Include =" HtmlFormTests.cs" />
69- <Compile Include =" HtmlFormDefinitionTests.cs" />
68+ <Compile Include =" Forms\ HtmlFormTests.cs" />
69+ <Compile Include =" Forms\ HtmlFormDefinitionTests.cs" />
7070 <Compile Include =" Properties\AssemblyInfo.cs" />
7171 <Compile Include =" Properties\Resources.Designer.cs" >
7272 <AutoGen >True</AutoGen >
Original file line number Diff line number Diff line change @@ -219,7 +219,7 @@ public void ImageWebResponseTest() {
219219 public void BinaryWebResponseTest ( ) {
220220 var webClient = new WebClient ( ) ;
221221
222- var uri = new Uri ( "https://download-cdn.getsync.com/stable/windows64/BitTorrent -Sync_x64.exe" ) ;
222+ var uri = new Uri ( "https://download-cdn.getsync.com/stable/windows64/Resilio -Sync_x64.exe" ) ;
223223
224224 using ( var response = webClient . SendRequest ( uri ) ) {
225225 Assert . NotNull ( response ) ;
@@ -249,7 +249,7 @@ public void BinaryWebResponseTest() {
249249 public void BinaryWebResponseDataPropertyBackwardsCompatibilityTest ( ) {
250250 var webClient = new WebClient ( ) ;
251251
252- var uri = new Uri ( "https://download-cdn.getsync.com/stable/windows64/BitTorrent -Sync_x64.exe" ) ;
252+ var uri = new Uri ( "https://download-cdn.getsync.com/stable/windows64/Resilio -Sync_x64.exe" ) ;
253253
254254 using ( var response = webClient . SendRequest ( uri ) ) {
255255 Assert . NotNull ( response ) ;
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ namespace NScrape.Cookies {
44 // Building an External DSL in C#
55 // http://nblumhardt.com/2010/01/building-an-external-dsl-in-c/
66 //
7- // sprache/ Sprache
7+ // Sprache
88 // https://github.com/sprache/Sprache
99 internal static class SetCookieHeaderGrammar {
1010 public static readonly Parser < char > EqualsSeparator = Parse . Char ( '=' ) ;
Original file line number Diff line number Diff line change 11using System ;
22using System . Collections . Generic ;
33using System . Globalization ;
4- using System . Linq ;
54using System . Net ;
65using NScrape . Cookies ;
76using Sprache ;
Original file line number Diff line number Diff line change 3232// Build Number
3333// Revision
3434//
35- [ assembly: AssemblyFileVersion ( "0.2 .0.0" ) ]
36- [ assembly: AssemblyInformationalVersion ( "0.2 .0.0" ) ]
37- [ assembly: AssemblyVersion ( "0.2 .0.0" ) ]
35+ [ assembly: AssemblyFileVersion ( "0.3 .0.0" ) ]
36+ [ assembly: AssemblyInformationalVersion ( "0.3 .0.0" ) ]
37+ [ assembly: AssemblyVersion ( "0.3 .0.0" ) ]
Original file line number Diff line number Diff line change @@ -327,9 +327,7 @@ public WebResponse SendRequest( WebRequest webRequest ) {
327327 catch ( WebException ex ) {
328328 response = new ExceptionWebResponse ( webRequest . Destination , ex ) ;
329329
330- if ( webResponse != null ) {
331- webResponse . Dispose ( ) ;
332- }
330+ webResponse ? . Dispose ( ) ;
333331 }
334332
335333 return response ;
You can’t perform that action at this time.
0 commit comments