public void GetReal() { PListReal element = _basicPlist.Root["RealValue"] as PListReal; Assert.IsNotNull(element); Assert.AreEqual(element.FloatValue, 3.14f); }
protected override void DrawReal(PListReal element) { EditorGUI.BeginChangeCheck(); var value = EditorGUILayout.FloatField(element.FloatValue); if (EditorGUI.EndChangeCheck()) { element.FloatValue = value; IsDirty = true; } }
protected abstract void DrawReal(PListReal element);
protected override void DrawReal(PListReal element) { Style.MinWidthLabel(element.ToString(), PADDING); }
public void SpecifiedConstructor() { PListReal f = new PListReal(10.12f); Assert.AreEqual(f.FloatValue, 10.12f); }
public void SetUp() { _element = new PListReal(); }