public void Get_Gets() { var driver = new FakeDriver(); Application.Init(driver, new FakeMainLoop(() => FakeConsole.ReadKey(true))); driver.Init(() => { }); var value = 42; var fg = new Color(); fg = Color.Red; var bg = new Color(); bg = Color.Blue; var attr = new Attribute(value, fg, bg); driver.SetAttribute(attr); var ret_attr = Attribute.Get(); Assert.Equal(value, ret_attr.Value); Assert.Equal(fg, ret_attr.Foreground); Assert.Equal(bg, ret_attr.Background); driver.End(); Application.Shutdown(); }