Ejemplo n.º 1
0
        public void Record_Test()
        {
            Profiler target = new Profiler();
            target.Start();
            target.Record(15);
            Thread.Sleep(300);
            target.Record(12);
            Thread.Sleep(1000);

            Assert.AreEqual(27, target.Fps);

            target.Record(7);
            Thread.Sleep(1000);

            Assert.AreEqual(7, target.Fps);
        }
Ejemplo n.º 2
0
 public void Start_Test()
 {
     Profiler target = new Profiler();
     target.Start();
     Assert.IsTrue(target.Enabled);
 }