Ejemplo n.º 1
0
        public void GetExecutionTime_ReturnsCurrentExecutionTime()
        {
            //  arrange
            string separator = ">";
            float  time      = UnityEngine.Time.time;
            string expected  = PMath.FormatTime(time) + " " + separator + " ";

            //  act
            string actual = PMath.GetExecutionTime(true, separator);

            //  assert
            Assert.IsTrue(expected.Equals(actual), TestHelper.ShowVariables(expected, actual));
        }