public void AmmoLoader_SetProjectile_ReturnType() { int index = 0; Projectile expectedResult = ammoLoader.projectileTypes[index]; poolManager.Peek(expectedResult).Returns(expectedResult); ammoLoader.SetType(index); Assert.AreEqual(expectedResult, ammoLoader.GetCurrentType()); }
// Look at the next projectile of current type. public Projectile GetCurrentType() { return(pooler.Peek(currentType) as Projectile); }