Example #1
0
 public ComposedScalar(ComposedScalar other)
     : base(other)
 {
     _fastType       = other._fastType;
     _fields         = other._fields.CloneArray();
     _valueConverter = other._valueConverter;
 }
 public ComposedScalar(ComposedScalar other)
     : base(other)
 {
     _fastType = other._fastType;
     _fields = other._fields.CloneArray();
     _valueConverter = other._valueConverter;
 }
        protected static void AssertComposedScalarField(ComposedScalar field, Type type, String name, Operator exponentOp,
            ScalarValue exponentValue, Operator mantissaOp, ScalarValue mantissaValue)
        {
            Assert.AreEqual(type, field.Type);
            Assert.AreEqual(name, field.Name);
            Scalar[] fields = field.Fields;
            Assert.AreEqual(exponentOp, fields[0].Operator);
            Assert.AreEqual(exponentValue, fields[0].DefaultValue);

            Assert.AreEqual(mantissaOp, fields[1].Operator);
            Assert.AreEqual(mantissaValue, fields[1].DefaultValue);
        }