Exemplo n.º 1
0
        protected static void AssertScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name, Operator op)
        {
            var field = (Scalar)fieldSet.GetField(fieldIndex);

            AssertScalarField(field, type, name);
            Assert.AreEqual(op, field.Operator);
        }
Exemplo n.º 2
0
        protected static void AssertScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name,
                                                OperatorCodec operatorCodec,
                                                ScalarValue defaultValue)
        {
            var field = (Scalar)fieldSet.GetField(fieldIndex);

            AssertScalarField(field, type, name);
            Assert.AreEqual(operatorCodec, field.OperatorCodec);
            Assert.AreEqual(defaultValue, field.DefaultValue);
        }
        protected static void AssertComposedScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name,
                                                        Operator exponentOp,
                                                        ScalarValue exponentValue, Operator mantissaOp,
                                                        ScalarValue mantissaValue)
        {
            var field = (ComposedScalar) fieldSet.GetField(fieldIndex);
            Assert.AreEqual(type, field.FastType);
            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);
        }
Exemplo n.º 4
0
        protected static void AssertComposedScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name,
                                                        Operator exponentOp,
                                                        ScalarValue exponentValue, Operator mantissaOp,
                                                        ScalarValue mantissaValue)
        {
            var field = (ComposedScalar)fieldSet.GetField(fieldIndex);

            Assert.AreEqual(type, field.FastType);
            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);
        }
 protected static void AssertScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name, Operator op)
 {
     var field = (Scalar) fieldSet.GetField(fieldIndex);
     AssertScalarField(field, type, name);
     Assert.AreEqual(op, field.Operator);
 }
 protected static void AssertScalarField(IFieldSet fieldSet, int fieldIndex, FastType type, String name,
                                         OperatorCodec operatorCodec,
                                         ScalarValue defaultValue)
 {
     var field = (Scalar) fieldSet.GetField(fieldIndex);
     AssertScalarField(field, type, name);
     Assert.AreEqual(operatorCodec, field.OperatorCodec);
     Assert.AreEqual(defaultValue, field.DefaultValue);
 }