Наследование: AbstractNode, IValue
        public void prints_float_value()
        {
            double value = 3.33;

            var val = new FloatValue(value);
            var result = _printer.Visit(val);
            result.ShouldBe($"{value, 0:0.0##}");
        }
Пример #2
0
 protected bool Equals(FloatValue other)
 {
     return(Value == other.Value);
 }
Пример #3
0
 protected bool Equals(FloatValue other)
 {
     return Value == other.Value;
 }