/// <summary> ///Deletes all non-persistent entries from the table /// </summary> public static void DeleteAllEntries() { #if CORE CoreMethods.DeleteAllEntries(); #else Storage.Instance.DeleteAllEntries(); #endif }
public void TestDeleteAllEntries() { string key1 = "testKey"; string toWrite1 = "written"; CoreMethods.SetEntryString(key1, toWrite1); string key2 = "testKey2"; double toWrite2 = 3.58; CoreMethods.SetEntryDouble(key2, toWrite2); Assert.That(CoreMethods.GetEntries("", 0).Length, Is.EqualTo(2)); CoreMethods.DeleteAllEntries(); Assert.That(CoreMethods.GetEntries("", 0).Length, Is.EqualTo(0)); const string err = "error"; Assert.That(CoreMethods.GetEntryString(key1, err), Is.EqualTo(err)); Assert.That(CoreMethods.GetEntryString(key2, err), Is.EqualTo(err)); }
public void SetUp() { CoreMethods.DeleteAllEntries(); }
public void SetUp() { CoreMethods.DeleteAllEntries(); m_nt = NetworkTable.GetTable(""); }
/// <summary> /// Deletes ALL keys in ALL subtables. Use with caution! /// </summary> public static void GlobalDeleteAll() { CoreMethods.DeleteAllEntries(); }
public void TestSetup() { CoreMethods.DeleteAllEntries(); m_table = NetworkTable.GetTable("Table"); }