public void TestHistoryEventParsing(string query, string beaconId, string eventTime, BeaconEventType beaconEventType, bool send) { HistoryEvent e = FileStorageHelper.EventFromString(query); //fallback for unparsable data if (beaconId == null && eventTime == null) { Assert.IsNull(e); return; } Assert.AreEqual(beaconId, e.BeaconId); Assert.AreEqual(eventTime, e.EventTime); Assert.AreEqual((int)beaconEventType, e.Trigger); }