예제 #1
0
        public void RoundtripSerialize()
        {
            var original = PropertyBasedScheduleConditionDefinition.CreateDefinition("a", GetPropertyForString());
            var copy     = AssertExtensions.RoundTripSerialize(original);

            Assert.AreEqual(original, copy);
        }
예제 #2
0
        public void Create()
        {
            var obj      = PropertyBasedScheduleConditionDefinition.CreateDefinition("a", GetPropertyForString());
            var property = GetPropertyForString();

            Assert.AreEqual("a", obj.ContractName);
            Assert.AreEqual(PropertyDefinition.CreateDefinition(property), obj.Property);
        }