public void SetCurrentEntityCorrectly() { // Arrange DCLBuilderInWorldEntity newEntity = new GameObject("_DCLBuilderInWorldEntity").AddComponent <DCLBuilderInWorldEntity>(); newEntity.entityUniqueId = "testId"; entityInformationView.currentEntity = null; // Act entityInformationView.SetCurrentEntity(newEntity); // Assert Assert.AreEqual(newEntity.entityUniqueId, entityInformationView.currentEntity.entityUniqueId, "The entity id does not match!"); }
public void SetCurrentEntityCorrectly() { // Arrange BIWEntity newEntity = new BIWEntity(); newEntity.entityUniqueId = "testId"; entityInformationView.currentEntity = null; // Act entityInformationView.SetCurrentEntity(newEntity); // Assert Assert.AreEqual(newEntity.entityUniqueId, entityInformationView.currentEntity.entityUniqueId, "The entity id does not match!"); }