public void CloneTest() { var exp = new Phase(new ComplexNumber(new Complex(2, 2))); var clone = exp.Clone(); Assert.Equal(exp, clone); }
private void AddToQueue(ArrayList phases, Phase phase) { if (phases != null) { if (phases.Count >= window) { phases.RemoveAt(0); } phases.Add(phase.Clone()); } }