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

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

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

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

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