public void Create() { var obj = ScheduleActionDefinition.CreateDefinition("a", GetMethodForInt()); Assert.AreEqual("a", obj.ContractName); Assert.AreEqual(MethodDefinition.CreateDefinition(GetMethodForInt()), obj.Method); }
public void RoundtripSerialize() { var original = ScheduleActionDefinition.CreateDefinition("a", GetMethodForInt()); var copy = AssertExtensions.RoundTripSerialize(original); Assert.AreEqual(original, copy); }