Beispiel #1
0
        public void GetMassOfSphere_ReturnsCorrectValue()
        {
            //  arrange
            float radius  = 10;
            float density = 1.5f;

            //  act
            float mass = PMath.GetMassOfSphere(radius, density);

            //  assert
            Assert.AreEqual(Mathf.PI * Mathf.Pow(radius, 3) * density, mass);
        }