mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2025-12-26 15:57:56 +01:00
* Refactored test namespaces. Moved some tests that were in wrong project. Code cleanup * Parrallel -> Parallel
22 lines
537 B
C#
22 lines
537 B
C#
using Xunit.Abstractions;
|
|
using static Terminal.Gui.ViewBase.Dim;
|
|
|
|
namespace UnitTests_Parallelizable.LayoutTests;
|
|
|
|
public class DimCombineTests (ITestOutputHelper output)
|
|
{
|
|
private readonly ITestOutputHelper _output = output;
|
|
|
|
|
|
[Fact]
|
|
public void DimCombine_Calculate_ReturnsCorrectValue ()
|
|
{
|
|
var dim1 = new DimAbsolute (10);
|
|
var dim2 = new DimAbsolute (20);
|
|
var dim = dim1 + dim2;
|
|
var result = dim.Calculate (0, 100, null, Dimension.None);
|
|
Assert.Equal (30, result);
|
|
}
|
|
|
|
}
|