Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.
/ corefx Public archive

Commit

Permalink
Merge pull request #1975 from mmitche/fix-net-http-tests
Browse files Browse the repository at this point in the history
Fixes issues with the System.Net.Http tests
  • Loading branch information
mmitche committed Jun 23, 2015
2 parents 61c837a + 36b6d6b commit df881ff
Show file tree
Hide file tree
Showing 60 changed files with 1,556 additions and 143 deletions.
2 changes: 1 addition & 1 deletion src/System.Net.Http/System.Net.Http.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.22816.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Net.Http.UnitTests", "tests\UnitTests\System.Net.Http.Unit.Tests.csproj", "{5F9C3C9F-652E-461E-B2D6-85D264F5A733}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "System.Net.Http.Tests", "tests\System.Net.Http.Tests.csproj", "{5F9C3C9F-652E-461E-B2D6-85D264F5A733}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class AuthenticationHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ByteArrayHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class CacheControlHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class CacheControlHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ContentDispositionHeaderValueTest
{
Expand Down Expand Up @@ -203,6 +203,7 @@ public void FileNameStar_NeedsEncoding_EncodedAndDecodedCorrectly()
Assert.Null(contentDisposition.FileNameStar);
}

[ActiveIssue(846, PlatformID.AnyUnix)]
[Fact]
public void FileNameStar_UnknownOrBadEncoding_PropertyFails()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ContentRangeHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class DateHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class EntityTagHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class AuthenticationParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ContentRangeParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class EntityTagParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HostParserTest
{
Expand All @@ -17,6 +17,7 @@ public void Properties_ReadValues_MatchExpectation()
Assert.Equal(StringComparer.OrdinalIgnoreCase, parser.Comparer);
}

[ActiveIssue(846, PlatformID.AnyUnix)]
[Fact]
public void TryParse_SetOfValidValueStrings_ParsedCorrectly()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class MailAddressParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class NameValueParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class NameValueWithParametersParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ProductParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class RangeConditionParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class RangeParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class RetryConditionParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class StringWithQualityParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class TokenListParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ViaParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class WarningParserTest
{
Expand All @@ -25,6 +25,7 @@ public void Properties_ReadValues_MatchExpectation()
Assert.Null(parser.Comparer);
}

[ActiveIssue(846, PlatformID.AnyUnix)]
[Fact]
public void TryParse_SetOfValidValueStrings_ParsedCorrectly()
{
Expand All @@ -46,6 +47,7 @@ public void TryParse_SetOfValidValueStrings_ParsedCorrectly()
CheckValidParsedValue(" ,,", 0, null, 4);
}

[ActiveIssue(846, PlatformID.AnyUnix)]
[Fact]
public void TryParse_SetOfInvalidValueStrings_ReturnsFalse()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HeaderUtilitiesTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HttpContentHeadersTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HttpHeaderValueCollectionTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HttpHeadersTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HttpRequestHeadersTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class HttpResponseHeadersTest
{
Expand Down Expand Up @@ -61,6 +61,7 @@ public void Location_UseAddMethodWithInvalidValue_InvalidValueRecognized()
Assert.Equal(" http://example.com http://other", headers.GetValues("Location").First());
}

[ActiveIssue(846, PlatformID.AnyUnix)]
[Fact]
public void Location_RequiresEncoding_Encoded()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class Int32NumberHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
using System.Text;

using Xunit;
namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class Int64NumberHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class MediaTypeHeaderParserTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class MediaTypeHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class MediaTypeWithQualityHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class NameValueHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class NameValueWithParametersHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ObjectCollectionTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ProductHeaderValueTest
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

using Xunit;

namespace System.Net.Http.Unit.Tests
namespace System.Net.Http.Tests
{
public class ProductInfoHeaderParserTest
{
Expand Down
Loading

0 comments on commit df881ff

Please sign in to comment.