2018-12-20 16:33:55 +08:00
|
|
|
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2018-12-25 17:07:19 +08:00
|
|
|
using osu.Framework.Configuration;
|
2018-12-20 16:33:55 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Screens.Multi.Match.Components;
|
|
|
|
using osu.Game.Users;
|
|
|
|
|
|
|
|
namespace osu.Game.Tests.Visual
|
|
|
|
{
|
|
|
|
public class TestCaseMatchHostInfo : OsuTestCase
|
|
|
|
{
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
{
|
|
|
|
typeof(HostInfo)
|
|
|
|
};
|
|
|
|
|
2018-12-25 17:07:19 +08:00
|
|
|
private readonly Bindable<User> host = new Bindable<User>(new User { Username = "SomeHost" });
|
|
|
|
|
2018-12-20 16:33:55 +08:00
|
|
|
public TestCaseMatchHostInfo()
|
|
|
|
{
|
2018-12-25 17:07:19 +08:00
|
|
|
HostInfo hostInfo;
|
|
|
|
|
|
|
|
Child = hostInfo = new HostInfo
|
2018-12-20 16:33:55 +08:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre
|
|
|
|
};
|
2018-12-25 17:07:19 +08:00
|
|
|
|
|
|
|
hostInfo.Host.BindTo(host);
|
2018-12-20 16:33:55 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|