1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-15 14:42:56 +08:00

Fix english in test steps

This commit is contained in:
Dean Herbert 2021-08-24 14:39:03 +09:00
parent 8cd972a9fe
commit 4bbc98737f

View File

@ -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);
} }