Example #1
0
        public void SpecifiedConstructor()
        {
            System.DateTime d = System.DateTime.Now;
            PListDate       b = new PListDate(d);

            Assert.AreEqual(b.Value, d);
        }
Example #2
0
        public void GetDate()
        {
            PListDate element = _basicPlist.Root["DateValue"] as PListDate;

            Assert.IsNotNull(element);
            Assert.AreEqual(element.ToString(), "2014-03-07T13:28:45Z");
        }
Example #3
0
        protected override void DrawDate(PListDate element)
        {
            EditorGUI.BeginChangeCheck();
            var value = EditorGUILayout.TextField(element.StringValue);

            if (EditorGUI.EndChangeCheck())
            {
                element.StringValue = value;
                IsDirty             = true;
            }
        }
Example #4
0
        public void StringConstructor()
        {
            PListDate b = new PListDate("2014-03-08T13:31:13Z");

            Assert.AreEqual(b.StringValue, "2014-03-08T13:31:13Z");
        }
Example #5
0
 public void SetUp()
 {
     _element = new PListDate();
 }
Example #6
0
 protected abstract void DrawDate(PListDate element);
Example #7
0
 protected override void DrawDate(PListDate element)
 {
     Style.MinWidthLabel(element.ToString(), PADDING);
 }