You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Trek-12/source/Trek-12/Tests/OperationCellTests.cs

28 lines
711 B

using Models.Game;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Tests
{
public class OperationCellTests
{
[Fact]
public void Constructor_WithValidCoordinates_SetsCoordinatesCorrectly()
{
OperationCell operationCell = new OperationCell(1, 2);
Assert.Equal(1, operationCell.X);
Assert.Equal(2, operationCell.Y);
}
[Fact]
public void Constructor_WithValidCoordinates_SetsIsCheckedToFalse()
{
OperationCell operationCell = new OperationCell(1, 2);
Assert.False(operationCell.IsChecked);
}
}
}