Tests.SceneCardViewShould.DisplayCorrectlyWhenSceneIsDeployed C# (CSharp) Method

DisplayCorrectlyWhenSceneIsDeployed() private method

private DisplayCorrectlyWhenSceneIsDeployed ( ) : void
return void
        public void DisplayCorrectlyWhenSceneIsDeployed()
        {
            ((ISceneCardView)cardView).Setup(new SceneData()
            {
                id = "",
                isDeployed = true,
                name = "test",
                coords = Vector2Int.zero,
                size = Vector2Int.zero,
                isOwner = true,
                isEditable = true
            });

            //should show both jump-in and editor buttons
            Assert.IsTrue(cardView.jumpInButton.gameObject.activeSelf, "JumpIn button should be active");
            Assert.IsTrue(cardView.editorButton.gameObject.activeSelf, "Editor button should be active");

            //should show coords instead of size
            Assert.IsTrue(cardView.coordsContainer.activeSelf, "Coords should be displayed");
            Assert.IsFalse(cardView.sizeContainer.activeSelf, "Size should not be displayed");

            //should show role
            Assert.IsTrue(cardView.roleOwnerGO.activeSelf, "Owner role tag should be displayed");
            Assert.IsFalse(cardView.roleOperatorGO.activeSelf, "Operator role tag should not be displayed");
            Assert.IsFalse(cardView.roleContributorGO.activeSelf, "Contributor role tag should not be displayed");
        }