public void TestInitialReload () { var view = new RecentTimeEntriesView (); view.Reload (); Assert.AreEqual (4, view.Count); Assert.AreEqual ( new long[] { 5, 4, 3, 2 }, view.Data.Select ((entry) => entry.RemoteId.Value).ToArray () ); view.Dispose (); }
public void TestInitialReload() { var view = new RecentTimeEntriesView(); view.Reload(); Assert.AreEqual(4, view.Count); Assert.AreEqual( new long[] { 5, 4, 3, 2 }, view.Data.Select((entry) => entry.RemoteId.Value).ToArray() ); view.Dispose(); }
public void TestInitialReload () { RunAsync (async delegate { var view = new RecentTimeEntriesView (); await WaitForLoaded (view); view.Reload (); await WaitForLoaded (view); Assert.AreEqual (4, view.Count); Assert.AreEqual ( new long[] { 5, 4, 3, 2 }, view.Data.Select ((entry) => entry.RemoteId.Value).ToArray () ); view.Dispose (); }); }
public void TestInitialReload() { RunAsync(async delegate { var view = new RecentTimeEntriesView(); await WaitForLoaded(view); view.Reload(); await WaitForLoaded(view); Assert.AreEqual(4, view.Count); Assert.AreEqual( new long[] { 5, 4, 3, 2 }, view.Data.Select((entry) => entry.RemoteId.Value).ToArray() ); view.Dispose(); }); }