Fix Stylesheet tests.

This commit is contained in:
Pieter-Jan Briers
2019-07-30 13:02:40 +02:00
parent 51bbc7e565
commit 9290ab445a
@@ -11,6 +11,12 @@ namespace Robust.UnitTesting.Client.UserInterface
{
public override UnitTestProject Project => UnitTestProject.Client;
[OneTimeSetUp]
public void Setup()
{
IoCManager.Resolve<IUserInterfaceManagerInternal>().InitializeTesting();
}
[Test]
public void TestSelectors()
{
@@ -65,6 +71,7 @@ namespace Robust.UnitTesting.Client.UserInterface
uiMgr.Stylesheet = sheet;
var control = new Label();
uiMgr.StateRoot.AddChild(control);
control.TryGetStyleProperty("foo", out string value);
Assert.That(value, Is.EqualTo("bar"));