-
-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1788 from DGP-Studio/develop
- Loading branch information
Showing
785 changed files
with
13,865 additions
and
11,251 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
files: | ||
- source: /src/Snap.Hutao/Snap.Hutao/Resource/Localization/SH.resx | ||
translation: /src/Snap.Hutao/Snap.Hutao/Resource/Localization/SH.%osx_locale%.resx | ||
- source: /src/Snap.Hutao/Snap.Hutao/Resource/Localization/SHRegex.resx | ||
translation: /src/Snap.Hutao/Snap.Hutao/Resource/Localization/SHRegex.%osx_locale%.resx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
src/Snap.Hutao/Snap.Hutao.Test/BaseClassLibrary/HttpClientTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
using System.Net.Http; | ||
|
||
namespace Snap.Hutao.Test.BaseClassLibrary; | ||
|
||
[TestClass] | ||
public sealed class HttpClientTest | ||
{ | ||
[TestMethod] | ||
public void RedirectionHeaderTest() | ||
{ | ||
HttpClientHandler handler = new() | ||
{ | ||
UseCookies = false, | ||
AllowAutoRedirect = false, | ||
}; | ||
|
||
using (handler) | ||
{ | ||
using (HttpClient httpClient = new(handler)) | ||
{ | ||
using (HttpRequestMessage request = new(HttpMethod.Get, "https://api.snapgenshin.com/patch/hutao/download")) | ||
{ | ||
using (HttpResponseMessage response = httpClient.Send(request)) | ||
{ | ||
_ = 1; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/Snap.Hutao/Snap.Hutao.Test/BaseClassLibrary/ListTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace Snap.Hutao.Test.BaseClassLibrary; | ||
|
||
[TestClass] | ||
public sealed class ListTest | ||
{ | ||
[TestMethod] | ||
public void IndexOfNullIsNegativeOne() | ||
{ | ||
List<object> list = [new()]; | ||
Assert.AreEqual(-1, list.IndexOf(default!)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
102 changes: 0 additions & 102 deletions
102
src/Snap.Hutao/Snap.Hutao/Control/AutoSuggestBox/AutoSuggestTokenBox.cs
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.