public void Serialize_Moritz_table() { var table = new MoritzTable(); var ics = _ics.From(table); Assert.IsFalse(string.IsNullOrEmpty(ics), "ICS string should not be null or empty!"); }
public void To_persistence_table_should_succeed() { { var table = new JannisTableA(); var persistence = TableConvert.ToPersistenceTable(JannisTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new JannisTableB(); var persistence = TableConvert.ToPersistenceTable(JannisTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new MoritzTable(); var persistence = TableConvert.ToPersistenceTable(MoritzTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } { var table = new ToniTable(); var persistence = TableConvert.ToPersistenceTable(ToniTable.BlockStartTimes, table); var json = ToJson(persistence); Assert.IsFalse(string.IsNullOrEmpty(json), "JSON should not be null or empty!"); } }