mirror of
https://github.com/osukey/osukey.git
synced 2025-05-17 03:27:21 +09:00
CI fix
This commit is contained in:
parent
ddb494efb3
commit
02fd85d485
@ -11,6 +11,7 @@ using osu.Game.Overlays;
|
|||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Game.Online.API.Requests.Responses;
|
using osu.Game.Online.API.Requests.Responses;
|
||||||
using osu.Game.Users;
|
using osu.Game.Users;
|
||||||
|
using JetBrains.Annotations;
|
||||||
|
|
||||||
namespace osu.Game.Tests.Visual.Online
|
namespace osu.Game.Tests.Visual.Online
|
||||||
{
|
{
|
||||||
@ -44,13 +45,6 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
[Test]
|
|
||||||
public void TestLocalCommentBundle()
|
|
||||||
{
|
|
||||||
AddStep("Add comment bundle", () => comments.ShowComments(getCommentBundle()));
|
|
||||||
AddStep("Add empty comment bundle", () => comments.ShowComments(getEmptyCommentBundle()));
|
|
||||||
}
|
|
||||||
|
|
||||||
[Test]
|
[Test]
|
||||||
public void TestAppendDuplicatedComment()
|
public void TestAppendDuplicatedComment()
|
||||||
{
|
{
|
||||||
@ -60,6 +54,13 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
AddAssert("Dictionary length is 10", () => comments.DictionaryLength == 10);
|
AddAssert("Dictionary length is 10", () => comments.DictionaryLength == 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[Test]
|
||||||
|
public void TestLocalCommentBundle()
|
||||||
|
{
|
||||||
|
AddStep("Add comment bundle", () => comments.ShowComments(getCommentBundle()));
|
||||||
|
AddStep("Add empty comment bundle", () => comments.ShowComments(getEmptyCommentBundle()));
|
||||||
|
}
|
||||||
|
|
||||||
private CommentBundle getEmptyCommentBundle() => new CommentBundle
|
private CommentBundle getEmptyCommentBundle() => new CommentBundle
|
||||||
{
|
{
|
||||||
Comments = new List<Comment>(),
|
Comments = new List<Comment>(),
|
||||||
@ -175,25 +176,25 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
private CommentBundle getCommentSubBundle() => new CommentBundle
|
private CommentBundle getCommentSubBundle() => new CommentBundle
|
||||||
{
|
{
|
||||||
Comments = new List<Comment>
|
Comments = new List<Comment>
|
||||||
{
|
{
|
||||||
new Comment
|
new Comment
|
||||||
{
|
{
|
||||||
Id = 1,
|
Id = 1,
|
||||||
Message = "Simple test comment",
|
Message = "Simple test comment",
|
||||||
LegacyName = "TestUser1",
|
LegacyName = "TestUser1",
|
||||||
CreatedAt = DateTimeOffset.Now,
|
CreatedAt = DateTimeOffset.Now,
|
||||||
VotesCount = 5
|
VotesCount = 5
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
IncludedComments = new List<Comment>(),
|
IncludedComments = new List<Comment>(),
|
||||||
};
|
};
|
||||||
|
|
||||||
private class TestCommentsContainer : CommentsContainer
|
private class TestCommentsContainer : CommentsContainer
|
||||||
{
|
{
|
||||||
public int DictionaryLength => CommentDictionary.Count;
|
public new void AppendComments([NotNull] CommentBundle bundle) => base.AppendComments(bundle);
|
||||||
|
|
||||||
public new void AppendComments(CommentBundle bundle) => base.AppendComments(bundle);
|
public int DictionaryLength => CommentDictionary.Count;
|
||||||
|
|
||||||
public void ShowComments(CommentBundle bundle)
|
public void ShowComments(CommentBundle bundle)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user