Log.Info(Globals.LogTag, "ResetStatistics_ALL_CONNECTION_TYPE start");
await tearDown();
+ var data = ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastReceivedData);
ConnectionManager.ResetStatistics(ConnectionType.WiFi, StatisticsType.LastReceivedData);
Log.Info(Globals.LogTag, "Reset LastReceivedData");
- Assert.IsTrue(0 == ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastReceivedData), "Reset LastReceivedData failed");
+ Assert.IsTrue(data > ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastReceivedData), "Reset LastReceivedData failed");
+
+ data = ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastSentData);
ConnectionManager.ResetStatistics(ConnectionType.WiFi, StatisticsType.LastSentData);
Log.Info(Globals.LogTag, "Reset LastSentData");
- Assert.IsTrue(0 == ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastSentData), "Reset LastSentData failed");
+ Assert.IsTrue(data > ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.LastSentData), "Reset LastSentData failed");
+
+ data = ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalReceivedData);
ConnectionManager.ResetStatistics(ConnectionType.WiFi, StatisticsType.TotalReceivedData);
Log.Info(Globals.LogTag, "Reset TotalReceivedData");
- Assert.IsTrue(0 == ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalReceivedData), "Reset TotalReceivedData failed");
+ Assert.IsTrue(data > ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalReceivedData), "Reset TotalReceivedData failed");
+
+ data = ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalSentData);
ConnectionManager.ResetStatistics(ConnectionType.WiFi, StatisticsType.TotalSentData);
Log.Info(Globals.LogTag, "Reset TotalSentData");
- Assert.IsTrue(0 == ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalSentData), "Reset TotalSentData failed");
+ Assert.IsTrue(data > ConnectionManager.GetStatistics(ConnectionType.WiFi, StatisticsType.TotalSentData), "Reset TotalSentData failed");
// POSTCONDITION
await setUp();