TestProject1.ActionHandlerTest.VisibilityTest C# (CSharp) Method

VisibilityTest() private method

private VisibilityTest ( ) : void
return void
        public void VisibilityTest()
        {
            ActionHandler target = new ActionHandler();
            //Object Assignment
            target.addObject(new Vector2(300, 250), 0, 30, 30);
            target.addObject(new Vector2(100, 100), 101, 90, 90);
            target.addObject(new Vector2(0, 0), 102, 90, 90);
            target.addObject(new Vector2(400, 240), 103, 90, 90);
            target.addObject(new Vector2(600, 200), 201, 35, 35);
            int ID1 = 201; //Enemy
            int ID2 = 0;   //Character
            //Character Position is returned when enemy found
            Vector2 expected = new Vector2(300, 250);
            Vector2 actual;
            actual = target.Visibility(ID1, ID2);
            Assert.AreNotEqual(expected, actual); //true
        }