예제 #1
0
        public void NotPassByReference()
        {
            var op = new[] { 1, 2, 4, 3 }.ToLadderSequence();
            var newTerm = new NormalOrderedSequence(op);

            op.Sequence[2] = new LadderOperator(RaisingLowering.d, 5);

            Assert.NotEqual(op.Sequence, newTerm.Sequence);
        }
예제 #2
0
 public void Inheritance()
 {
     var term  = new NormalOrderedSequence <int>(new LadderSequence <int>());
     var term2 = new HermitianFermionTerm(term);
 }