maze-project
Show / Hide Table of Contents

Class MazeApiTestBase

This base class contains the xUnit unit tests for the Maze.Api .NET class library

Inheritance
object
MazeApiTestBase
MazeApiWasmerTest_NonStatic
MazeApiWasmerTest_Static
MazeApiWasmtimeTest_NonStatic
MazeApiWasmtimeTest_Static
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Maze.Api.Tests
Assembly: Maze.Api.Tests.dll
Syntax
public abstract class MazeApiTestBase

Constructors

MazeApiTestBase()

This base class contains the xUnit unit tests for the Maze.Api .NET class library

Declaration
protected MazeApiTestBase()

Methods

MazeColCount_ShouldReturnCorrectNumberCols()

Confirms that ColCount returns the expected number of columns

Declaration
[Fact]
public void MazeColCount_ShouldReturnCorrectNumberCols()

MazeDeleteCols_FailsForEmptyMaze()

Confirms that DeleteCols(uint, uint) fails for an empty maze

Declaration
[Fact]
public void MazeDeleteCols_FailsForEmptyMaze()

MazeDeleteCols_FailsForInvalidStartCol()

Confirms that DeleteCols(uint, uint) fails for an invalid start column

Declaration
[Fact]
public void MazeDeleteCols_FailsForInvalidStartCol()

MazeDeleteCols_FailsIfCountTooLarge()

Confirms that DeleteCols(uint, uint) fails if the number of columns requested is too large

Declaration
[Fact]
public void MazeDeleteCols_FailsIfCountTooLarge()

MazeDeleteCols_SucceedsForValidStartCol()

Confirms that DeleteCols(uint, uint) succeeds for a valid start column and column count

Declaration
[Fact]
public void MazeDeleteCols_SucceedsForValidStartCol()

MazeDeleteRows_FailsForEmptyMaze()

Confirms that DeleteRows(uint, uint) fails for an empty maze

Declaration
[Fact]
public void MazeDeleteRows_FailsForEmptyMaze()

MazeDeleteRows_FailsForInvalidStartRow()

Confirms that DeleteRows(uint, uint) fails for an invalid start row

Declaration
[Fact]
public void MazeDeleteRows_FailsForInvalidStartRow()

MazeDeleteRows_FailsIfCountTooLarge()

Confirms that DeleteRows(uint, uint) fails if the number of rows requested is too large

Declaration
[Fact]
public void MazeDeleteRows_FailsIfCountTooLarge()

MazeDeleteRows_SucceedsForValidStartRow()

Confirms that DeleteRows(uint, uint) succeeds for a valid start row and row count

Declaration
[Fact]
public void MazeDeleteRows_SucceedsForValidStartRow()

MazeFromJson_ShouldFail()

Confirms that FromJson(string) fails for invalid JSON

Declaration
[Fact]
public void MazeFromJson_ShouldFail()

MazeFromJson_ShouldSucceed()

Confirms that FromJson(string) succeeds for valid JSON

Declaration
[Fact]
public void MazeFromJson_ShouldSucceed()

MazeGetCellType_FailsForEmptyMaze()

Confirms that GetCellType(uint, uint) fails for an empty maze

Declaration
[Fact]
public void MazeGetCellType_FailsForEmptyMaze()

MazeGetCellType_FailsForInvalidCol()

Confirms that GetCellType(uint, uint) fails for an invalid target column

Declaration
[Fact]
public void MazeGetCellType_FailsForInvalidCol()

MazeGetCellType_FailsForInvalidRow()

Confirms that GetCellType(uint, uint) fails for an invalid target row

Declaration
[Fact]
public void MazeGetCellType_FailsForInvalidRow()

MazeGetCellType_SucceedsForValidCellLocation()

Confirms that GetCellType(uint, uint) succeeds for valid cell location

Declaration
[Fact]
public void MazeGetCellType_SucceedsForValidCellLocation()

MazeGetFinishCell_FailsForEmptyMaze()

Confirms that GetFinishCell() fails for an empty maze

Declaration
[Fact]
public void MazeGetFinishCell_FailsForEmptyMaze()

MazeGetFinishCell_FailsIfNotDefined()

Confirms that GetFinishCell() fails if a finish cell is not defined

Declaration
[Fact]
public void MazeGetFinishCell_FailsIfNotDefined()

MazeGetFinishCell_SucceedsIfDefined()

Confirms that GetFinishCell() succeeds if a finish cell is defined

Declaration
[Fact]
public void MazeGetFinishCell_SucceedsIfDefined()

MazeGetStartCell_FailsForEmptyMaze()

Confirms that GetStartCell() fails for an empty maze

Declaration
[Fact]
public void MazeGetStartCell_FailsForEmptyMaze()

MazeGetStartCell_FailsIfNotDefined()

Confirms that GetStartCell() fails if a start cell is not defined

Declaration
[Fact]
public void MazeGetStartCell_FailsIfNotDefined()

MazeGetStartCell_SucceedsIfDefined()

Confirms that GetStartCell() succeeds if a start cell is defined

Declaration
[Fact]
public void MazeGetStartCell_SucceedsIfDefined()

MazeInsertCols_FailsForEmptyMaze()

Confirms that InsertCols(uint, uint) fails for an empty maze

Declaration
[Fact]
public void MazeInsertCols_FailsForEmptyMaze()

MazeInsertCols_FailsForInvalidStartCol()

Confirms that InsertCols(uint, uint) fails for an invalid start column

Declaration
[Fact]
public void MazeInsertCols_FailsForInvalidStartCol()

MazeInsertCols_SucceedsForValidStartCol()

Confirms that InsertCols(uint, uint) succeeds for a valid start column

Declaration
[Fact]
public void MazeInsertCols_SucceedsForValidStartCol()

MazeInsertRows_FailsForInvalidStartRow()

Confirms that InsertRows(uint, uint) fails for an invalid start row

Declaration
[Fact]
public void MazeInsertRows_FailsForInvalidStartRow()

MazeInsertRows_SucceedsForValidStartRow()

Confirms that InsertRows(uint, uint) succeeds and results in the expected number of rows

Declaration
[Fact]
public void MazeInsertRows_SucceedsForValidStartRow()

MazeReset_ShouldSucceed()

Confirms that Reset() removes all rows and columns

Declaration
[Fact]
public void MazeReset_ShouldSucceed()

MazeResize_ChangesRowAndColumnCounts()

Confirms that Resize(uint, uint) correctly adjusts the number of rows and columns

Declaration
[Fact]
public void MazeResize_ChangesRowAndColumnCounts()

MazeRowCount_ShouldReturnCorrectNumberRows()

Confirms that RowCount returns the expected number of rows

Declaration
[Fact]
public void MazeRowCount_ShouldReturnCorrectNumberRows()

MazeSetWallCells_FailsForEmptyMaze()

Confirms that SetWallCells(uint, uint, uint, uint) fails for an empty maze

Declaration
[Fact]
public void MazeSetWallCells_FailsForEmptyMaze()

MazeSetWallCells_FailsForInvalidEndLocation()

Confirms that SetWallCells(uint, uint, uint, uint) fails for an invalid end location

Declaration
[Fact]
public void MazeSetWallCells_FailsForInvalidEndLocation()

MazeSetWallCells_FailsForInvalidStartLocation()

Confirms that SetWallCells(uint, uint, uint, uint) fails for an invalid start location

Declaration
[Fact]
public void MazeSetWallCells_FailsForInvalidStartLocation()

MazeSetWallCells_SucceedsForValidCellRange()

Confirms that SetWallCells(uint, uint, uint, uint) succeeds for a valid cell range

Declaration
[Fact]
public void MazeSetWallCells_SucceedsForValidCellRange()

MazeSolutionGetPathPoints_ShouldSucceed()

Confirms that GetPathPoints() succeeds for a solution and returns the expected number of points

Declaration
[Fact]
public void MazeSolutionGetPathPoints_ShouldSucceed()

MazeSolve_ShouldFailWithNoStartCell()

Confirms that Solve() fails for a maze that has no start cell defined and with the expected error

Declaration
[Fact]
public void MazeSolve_ShouldFailWithNoStartCell()

MazeSolve_ShouldSucceed()

Confirms that Solve() succeeds for a valid maze that has a solution

Declaration
[Fact]
public void MazeSolve_ShouldSucceed()

MazeToJson_ShouldSucceed()

Confirms that ToJson() succeeds

Declaration
[Fact]
public void MazeToJson_ShouldSucceed()

MazeWasmSolve_ShouldFailWithNoFinishCell()

Confirms that Solve() fails for a maze that has no finish cell defined and with the expected error

Declaration
[Fact]
public void MazeWasmSolve_ShouldFailWithNoFinishCell()
In this article
Back to top Generated by DocFX