private void StartNewEditorIfEntityFound(Vector2D position) { foreach ( Entity2D entity in entities.Where(entity => entity.RotatedDrawAreaContains(position))) if (EditorMode == EditorMode.Read) ActiveEditor = new EntityReader(entity); else // Can't test this with ncrunch as pausing time can mess up other tests at random ActiveEditor = new EntityWriter(entity); // ncrunch: no coverage }
private void StartNewEditorIfEntityFound(Vector2D position) { foreach ( Entity2D entity in entities.Where(entity => entity.RotatedDrawAreaContains(position))) { if (EditorMode == EditorMode.Read) { ActiveEditor = new EntityReader(entity); } else { // Can't test this with ncrunch as pausing time can mess up other tests at random ActiveEditor = new EntityWriter(entity); // ncrunch: no coverage } } }
public void SetUp() { logo = new BouncingLogo(); logo.Color = Color.White; reader = new EntityReader(logo); }