Exemple #1
0
        public void CloneTest()
        {
            var exp   = new Phase(new ComplexNumber(new Complex(2, 2)));
            var clone = exp.Clone();

            Assert.Equal(exp, clone);
        }
Exemple #2
0
 private void AddToQueue(ArrayList phases, Phase phase)
 {
     if (phases != null)
     {
         if (phases.Count >= window)
         {
             phases.RemoveAt(0);
         }
         phases.Add(phase.Clone());
     }
 }