public void PingPongGenerator_CreateRange_True() { Pingpong testGame = new Pingpong(); CollectionAssert.AreEqual(new int[] { 0, 1, 2, 3 }, testGame.PingPongGenerator(4)); }
public void DivisibleByBoth_ReplacePingPong_Bool() { Pingpong testGame = new Pingpong(); Assert.AreEqual(true, testGame.DivisibleByBoth(15)); }
public void PingpongCheck_NumberDivisibleByThree_True() { Pingpong testPingPong = new Pingpong(); Assert.AreEqual("ping", testPingPong.PingpongCheck(3)); }
public void DivisibleByFive_ReplacePong_Bool() { Pingpong testGame = new Pingpong(); Assert.AreEqual(true, testGame.DivisibleByFive(5)); }
public bool IsCollided(Pingpong ball, BlockPanel blockPanel) { return(ball.VerticalCoordinate + ball.Height > blockPanel.VerticalCoordiante && ball.HorizontalCoordinate + ball.Width / 2 >= blockPanel.HorizontalCoordinate && ball.HorizontalCoordinate + ball.Width / 2 <= blockPanel.HorizontalCoordinate + blockPanel.Width); }