18 lines
377 B
C#
18 lines
377 B
C#
using Xunit;
|
|
|
|
namespace MaxElementAboveDiagonal.Tests;
|
|
|
|
public class MatrixTests
|
|
{
|
|
[Fact]
|
|
public void TestFindMaxAboveDiagonal()
|
|
{
|
|
int[,] matrix = {
|
|
{ 1, 2, 3 },
|
|
{ 4, 5, 6 },
|
|
{ 7, 8, 9 }
|
|
};
|
|
Assert.Equal(6, Program.FindMaxAboveDiagonal(matrix));
|
|
}
|
|
}
|