public void MapDisplayData_ReturnsCorrectMeshDependingOnStatus() { MapDisplayData dispData = new MapDisplayData(data); dispData.UpdateLOD(2); dispData.SetStatus(MapDisplayStatus.VISIBLE); Assert.True(dispData.GetMesh() == dispData.Mesh, "Mesh was not updated!"); dispData.SetStatus(MapDisplayStatus.HIDDEN); Assert.True(dispData.GetMesh() == dispData.lowLodMesh, "Mesh was not updated!"); }
public void MapDisplayData_UpdateLODUpdatesMesh() { MapDisplayData dispData = new MapDisplayData(data); dispData.SetStatus(MapDisplayStatus.VISIBLE); dispData.UpdateLOD(2); Assert.True(dispData.GetMesh() == dispData.Mesh, "Mesh was not updated!"); }
public void MapDisplayData_SetMapDataInitializesMesh() { MapDisplayData dispData = new MapDisplayData(); Assert.True(dispData.GetMesh() == null, "There was a mesh before there was any data!"); dispData.SetStatus(MapDisplayStatus.VISIBLE); dispData.SetMapData(data); Assert.True(dispData.GetMesh() == dispData.lowLodMesh, "Mesh was not initialized!"); }
public void SetStatus(MapDisplayStatus newStatus) { displayData.SetStatus(newStatus); }