Grid3DTests RedrawGridIfItChanges Method Delta Engine Documentation

Namespace: DeltaEngine.Rendering3D.Shapes.Tests
Assembly: DeltaEngine.Rendering3D.Shapes.Tests (in DeltaEngine.Rendering3D.Shapes.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void RedrawGridIfItChanges()
Examples

[Test]
public void RedrawGridIfItChanges()
{
    var grid = new Grid3D(new Size(1));
    Assert.AreEqual(4, EntitiesRunner.Current.GetEntitiesOfType<Line3D>().Count);
    grid.Dimension = new Size(10);
    Assert.AreEqual(22, EntitiesRunner.Current.GetEntitiesOfType<Line3D>().Count);
}
See Also