public virtual string FormatValue(RemoteValue remoteValue, ValueFormat fallbackValueFormat) { string displayValue = remoteValue.GetDisplayValue(GetValueFormat(fallbackValueFormat)); // TODO: Remove trailing zeros from ST registers summary. if (remoteValue.GetValueType() == ValueType.Register && remoteValue.GetTypeName().Contains("ext_vector_type")) { // Ensure consistency across all the registers presented as vectors. return(TrySwitchFromParenthesesToBrackets(displayValue)); } return(displayValue); }
public void FormatValueUnexpectedValue() { mockValue.GetDisplayValue(ValueFormat.VectorOfFloat32).Returns("0x00"); Assert.AreEqual("0x00", vectorFormat32.FormatValue(mockValue, ValueFormat.Default)); }