public void SpecifiedConstructor() { System.DateTime d = System.DateTime.Now; PListDate b = new PListDate(d); Assert.AreEqual(b.Value, d); }
public void GetDate() { PListDate element = _basicPlist.Root["DateValue"] as PListDate; Assert.IsNotNull(element); Assert.AreEqual(element.ToString(), "2014-03-07T13:28:45Z"); }
protected override void DrawDate(PListDate element) { EditorGUI.BeginChangeCheck(); var value = EditorGUILayout.TextField(element.StringValue); if (EditorGUI.EndChangeCheck()) { element.StringValue = value; IsDirty = true; } }
public void StringConstructor() { PListDate b = new PListDate("2014-03-08T13:31:13Z"); Assert.AreEqual(b.StringValue, "2014-03-08T13:31:13Z"); }
public void SetUp() { _element = new PListDate(); }
protected abstract void DrawDate(PListDate element);
protected override void DrawDate(PListDate element) { Style.MinWidthLabel(element.ToString(), PADDING); }