public void CreateFreeEventFrame() { AFEventFrame frame = GenerateFrame(DateTime.Now, null); _db.CreateEventFrame(frame); AFEventFrame foundFrame = _db.EventFrames[frame.Name]; Assert.IsNotNull(foundFrame, "Assert frame exists in AFDB frame list"); Assert.Equals(frame.Name, foundFrame.Name); Assert.Equals(frame.Description, foundFrame.Description); Assert.Equals(frame.StartTime, foundFrame.StartTime); Assert.IsNull(frame.EndTime, "Assert EndTime is null."); foundFrame.Delete(); foundFrame.CheckIn(); try { var x = _db.EventFrames[foundFrame.Name]; Assert.Fail("Index out of bound was not thrown!"); } catch (Exception ex) { } }