Class UnityViewBrowserServiceTests
PlayMode tests for Serenity.ViewBrowser.Infrastructure.Services.UnityViewBrowserService, the MonoBehaviour navigation stack. Exercises push/current/back/clear/history behaviour over a fake Serenity.Global.Application.Interfaces.IViewBase, including the throw-on-empty semantics that distinguish it from the pure-C# fake.
Inherited Members
Namespace: Serenity.UnityViewBrowser.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class UnityViewBrowserServiceTests
Constructors
UnityViewBrowserServiceTests()
Declaration
public UnityViewBrowserServiceTests()
Methods
ClearHistory_OnEmptyHistory_DoesNotThrow()
Declaration
public void ClearHistory_OnEmptyHistory_DoesNotThrow()
ClearHistory_RemovesAllViews()
Declaration
public void ClearHistory_RemovesAllViews()
GetCurrentView_EmptyHistory_Throws()
Declaration
public void GetCurrentView_EmptyHistory_Throws()
GetCurrentView_ReturnsTopOfStack()
Declaration
public void GetCurrentView_ReturnsTopOfStack()
GetHistory_Initially_IsEmpty()
Declaration
public void GetHistory_Initially_IsEmpty()
GoBack_EmptyHistory_Throws()
Declaration
public void GoBack_EmptyHistory_Throws()
GoBack_LeavesPreviousViewAsCurrent()
Declaration
public void GoBack_LeavesPreviousViewAsCurrent()
GoBack_ReturnsAndRemovesTopView()
Declaration
public void GoBack_ReturnsAndRemovesTopView()
GuidProperty_RoundTripsThroughInterface()
Declaration
public void GuidProperty_RoundTripsThroughInterface()
IdProperty_RoundTripsThroughInterface()
Declaration
public void IdProperty_RoundTripsThroughInterface()
PushPopRoundTrip_RestoresEmptyState()
Declaration
public void PushPopRoundTrip_RestoresEmptyState()
Push_AddsViewToHistory()
Declaration
public void Push_AddsViewToHistory()
Push_MultipleViews_PreservesOrder()
Declaration
public void Push_MultipleViews_PreservesOrder()
Push_ReturnsTheSameViewInstance()
Declaration
public void Push_ReturnsTheSameViewInstance()
Service_IsInstanceOf_IViewBrowserService()
Declaration
public void Service_IsInstanceOf_IViewBrowserService()
SetUp()
Declaration
public void SetUp()
TearDown()
Declaration
public void TearDown()