Tests.SceneCardViewShould.DisplayCorrectlyWhenSceneIsNotDeployed C# (CSharp) Method

DisplayCorrectlyWhenSceneIsNotDeployed() private method

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

            //should show only editor button, no jump-in
            Assert.IsFalse(cardView.jumpInButton.gameObject.activeSelf, "JumpIn button should not be active");
            Assert.IsTrue(cardView.editorButton.gameObject.activeSelf, "Editor button should be active");

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

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