public void GetCronExpressionFromSchedule_ExpressionClone_Works() { var schedule = new ExpressionSchedule { CronExpression = "* * * * *" }; var cloned = schedule.Clone(); var clonedTyped = Assert.IsType<ExpressionSchedule>(cloned); Assert.Equal(schedule.GetType(), clonedTyped.GetType()); Assert.Equal(schedule.CronExpression, clonedTyped.CronExpression); Assert.NotSame(schedule, clonedTyped); }