Ejemplo n.º 1
0
        public void Ctor_RefernceType_Initialized()
        {
            var value   = new List();
            var subject = new NotifyingObject <List>(value);

            Assert.AreEqual(value, subject.GetValue());
        }
Ejemplo n.º 2
0
        public void Ctor_ValueType_Initialized()
        {
            const int value   = 42;
            var       subject = new NotifyingObject <int>(value);

            Assert.AreEqual(value, subject.GetValue());
        }
Ejemplo n.º 3
0
 public void ParamlessCtor_ValueType_DefaultValue()
 {
     var subject = new NotifyingObject<TimeSpan>();
     Assert.AreEqual(default(TimeSpan), subject.GetValue());
 }
Ejemplo n.º 4
0
 public void ParamlessCtor_RefernceType_Null()
 {
     var subject = new NotifyingObject<List>();
     Assert.IsNull(subject.GetValue());
 }
Ejemplo n.º 5
0
 public void Ctor_ValueType_Initialized()
 {
     const int value = 42;
     var subject = new NotifyingObject<int>(value);
     Assert.AreEqual(value, subject.GetValue());
 }
Ejemplo n.º 6
0
 public void Ctor_RefernceType_Initialized()
 {
     var value = new List();
     var subject = new NotifyingObject<List>(value);
     Assert.AreEqual(value, subject.GetValue());
 }
Ejemplo n.º 7
0
 public void OnCenterPositionChanged(Vector3 center)
 {
     _center = center;
     PositionProperty.SetValue(CalculatePosition(center, SizeProperty.GetValue()));
 }
Ejemplo n.º 8
0
        public void ParamlessCtor_RefernceType_Null()
        {
            var subject = new NotifyingObject <List>();

            Assert.IsNull(subject.GetValue());
        }
Ejemplo n.º 9
0
        public void ParamlessCtor_ValueType_DefaultValue()
        {
            var subject = new NotifyingObject <TimeSpan>();

            Assert.AreEqual(default(TimeSpan), subject.GetValue());
        }