mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 18:47:27 +08:00
36 lines
948 B
C#
36 lines
948 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using osu.Framework.Bindables;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Screens.Multi.Match.Components;
|
|
using osu.Game.Users;
|
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
|
{
|
|
public class TestCaseMatchHostInfo : OsuTestCase
|
|
{
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
{
|
|
typeof(HostInfo)
|
|
};
|
|
|
|
private readonly Bindable<User> host = new Bindable<User>(new User { Username = "SomeHost" });
|
|
|
|
public TestCaseMatchHostInfo()
|
|
{
|
|
HostInfo hostInfo;
|
|
|
|
Child = hostInfo = new HostInfo
|
|
{
|
|
Anchor = Anchor.Centre,
|
|
Origin = Anchor.Centre
|
|
};
|
|
|
|
hostInfo.Host.BindTo(host);
|
|
}
|
|
}
|
|
}
|