示例#1
0
 private void InitializeInstanceFields()
 {
     _scalars = Arrays.asList(ShouldGivePublic(Values.ByteValue(( sbyte )1), ( sbyte )1), ShouldGivePublic(Values.ShortValue(( short )2), ( short )2), ShouldGivePublic(Values.IntValue(3), 3), ShouldGivePublic(Values.LongValue(4L), 4L), ShouldGivePublic(Values.FloatValue(5.0f), 5.0f), ShouldGivePublic(Values.DoubleValue(6.0), 6.0), ShouldGivePublic(Values.BooleanValue(false), false), ShouldGivePublic(Values.CharValue('a'), 'a'), ShouldGivePublic(Values.StringValue("b"), "b"));
 }
示例#2
0
 private static Test ShouldNotMatch(short propertyValue, object value)
 {
     return(new Test(Values.ShortValue(propertyValue), value, false));
 }
示例#3
0
 public override AnyValue Value(int offset)
 {
     return(Values.ShortValue(_value[offset]));
 }