public void Test_IsInFieldOfVision_MustMatch() { var enemy = new Infantery(); enemy.OwnerId = "2"; enemy.Position = new Vector2(500, 523); var infantery = new Infantery(); infantery.OwnerId = "1"; infantery.Position = new Vector2(0, 0); var barrack = new Barrack(); barrack.OwnerId = "1"; barrack.Position = new Vector2(500, 500); Assert.False(infantery.IsInFieldOfVision(enemy.Position)); Assert.False(enemy.IsInFieldOfVision(barrack.Position)); Assert.True(barrack.IsInFieldOfVision(enemy.Position)); }