mirror of
https://github.com/ppy/osu.git
synced 2025-02-15 23:42:55 +08:00
Fix english in test steps
This commit is contained in:
parent
8cd972a9fe
commit
4bbc98737f
@ -90,7 +90,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
|
|
||||||
setUpCommentsResponse(comments);
|
setUpCommentsResponse(comments);
|
||||||
AddStep("show comments", () => commentsContainer.ShowComments(CommentableType.Beatmapset, 123));
|
AddStep("show comments", () => commentsContainer.ShowComments(CommentableType.Beatmapset, 123));
|
||||||
AddAssert("no comment showed", () => !commentsContainer.ChildrenOfType<DrawableComment>().Any());
|
AddAssert("no comment shown", () => !commentsContainer.ChildrenOfType<DrawableComment>().Any());
|
||||||
}
|
}
|
||||||
|
|
||||||
[TestCase(false)]
|
[TestCase(false)]
|
||||||
@ -120,7 +120,7 @@ namespace osu.Game.Tests.Visual.Online
|
|||||||
setUpCommentsResponse(bundle);
|
setUpCommentsResponse(bundle);
|
||||||
AddStep("show comments", () => commentsContainer.ShowComments(CommentableType.Beatmapset, 123));
|
AddStep("show comments", () => commentsContainer.ShowComments(CommentableType.Beatmapset, 123));
|
||||||
AddUntilStep("wait comment load", () => commentsContainer.ChildrenOfType<DrawableComment>().Any());
|
AddUntilStep("wait comment load", () => commentsContainer.ChildrenOfType<DrawableComment>().Any());
|
||||||
AddAssert("only one comment showed", () =>
|
AddAssert("only one comment shown", () =>
|
||||||
commentsContainer.ChildrenOfType<DrawableComment>().Count(d => d.Comment.Pinned == withPinned) == 1);
|
commentsContainer.ChildrenOfType<DrawableComment>().Count(d => d.Comment.Pinned == withPinned) == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user