Skip to content

SpacesVmImplTest

Namespace: SlottyMedia.Tests.Viewmodel

Unit tests for the class.

public class SpacesVmImplTest

Inheritance ObjectSpacesVmImplTest

Constructors

SpacesVmImplTest()

public SpacesVmImplTest()

Methods

Setup()

Sets up the test environment before each test.

public void Setup()

LoadForums_ValidResponse_UpdatesForumsList()

Verifies that LoadForums updates the forums list with a valid response.

public Task LoadForums_ValidResponse_UpdatesForumsList()

Returns

Task

LoadForums_ExceptionThrown_LogsError()

Verifies that LoadForums logs an error and returns an empty list when an exception is thrown.

public Task LoadForums_ExceptionThrown_LogsError()

Returns

Task

Constructor_NullForumService_ThrowsArgumentNullException()

Verifies that the constructor throws an ArgumentNullException when the forum service is null.

public void Constructor_NullForumService_ThrowsArgumentNullException()