teamlead-dashboard/tests/TUI.Engine.Tests/DrawTests/IntegerTests.cs

26 lines
561 B
C#
Raw Normal View History

2024-03-15 19:13:09 +00:00
using FluentAssertions;
namespace TUI.Engine.Tests.DrawTests;
public class IntegerTests
{
[Theory]
[InlineData(5, 10, 5)]
[InlineData(5, 5, 5)]
[InlineData(5, 3, 3)]
public void Max(int value, int max, int expected)
{
var result = value.Max(max);
result.Should().Be(expected);
}
[Theory]
[InlineData(5, 10, 10)]
[InlineData(5, 5, 5)]
[InlineData(5, 3, 5)]
public void Min(int value, int min, int expected)
{
var result = value.Min(min);
result.Should().Be(expected);
}
}