Пример #1
0
        public void TestHistoryEventToString()
        {
            string s = FileStorageHelper.EventToString(new HistoryEvent()
            {
                BeaconId  = "1",
                EventTime = DateTimeOffset.Parse("2015-04-16T14:00:00.000+0000").ToString(History.Timeformat),
                Trigger   = (int)BeaconEventType.Enter
            });

            Assert.AreEqual("1,1429192800000,1,False,\n", s);
        }