mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
// Alias Console to MockConsole so we don't accidentally use Console
|
||||
|
||||
using UnitTests;
|
||||
|
||||
namespace UnitTests_Parallelizable.DrawingTests;
|
||||
|
||||
public class AttributeTests
|
||||
public class AttributeTests : FakeDriverBase
|
||||
{
|
||||
[Fact]
|
||||
public void Constructor_ParsesNamedColorsAndStyle ()
|
||||
@@ -36,7 +38,7 @@ public class AttributeTests
|
||||
public void Constructor_DefaultsToNoneStyle_WhenStyleIsNullOrEmpty ()
|
||||
{
|
||||
var attr1 = new Attribute ("White", "Black");
|
||||
var attr2 = new Attribute ("White", "Black", null);
|
||||
var attr2 = new Attribute ("White", "Black");
|
||||
var attr3 = new Attribute ("White", "Black", "");
|
||||
Assert.Equal (TextStyle.None, attr1.Style);
|
||||
Assert.Equal (TextStyle.None, attr2.Style);
|
||||
@@ -103,8 +105,7 @@ public class AttributeTests
|
||||
[Fact]
|
||||
public void Constructors_Construct ()
|
||||
{
|
||||
var driver = new FakeDriver ();
|
||||
driver.Init ();
|
||||
IDriver driver = CreateFakeDriver ();
|
||||
|
||||
// Test parameterless constructor
|
||||
var attr = new Attribute ();
|
||||
@@ -258,8 +259,7 @@ public class AttributeTests
|
||||
[Fact]
|
||||
public void Make_Creates ()
|
||||
{
|
||||
var driver = new FakeDriver ();
|
||||
driver.Init ();
|
||||
IDriver driver = CreateFakeDriver ();
|
||||
|
||||
var fg = new Color ();
|
||||
fg = new (Color.Red);
|
||||
|
||||
Reference in New Issue
Block a user