Exemplo n.º 1
0
        public void TestIsInViewDetectsOutOfBoundsCorrectly()
        {
            var entity = new DummyEntity("");
            entity.Position = new Vector2(0, 0);

            var entity2 = new DummyEntity("");
            entity.Position = new Vector2(1931, 1085);

            Assert.Equal(false, entity.IsInView(entity2));
        }
Exemplo n.º 2
0
        public void TestIsInViewDetectsInBoundsCorrectly()
        {
            var entity = new DummyEntity("");
            entity.Position = new Vector2(0, 0);

            var entity2 = new DummyEntity("");
            entity2.Position = new Vector2(1920, 1079);

            Assert.Equal(true, entity.IsInView(entity2));
        }