public void MethodCallsAreLogged() { _tracker.ListChainIds(); Assert.Equal(1, _tracker.Logs.Count); Assert.Equal(("ListChainIds", null, null), _tracker.Logs[0]); var chainId = Guid.NewGuid(); _tracker.CountIndex(chainId); Assert.Equal(2, _tracker.Logs.Count); Assert.Equal(("CountIndex", chainId, null), _tracker.Logs[1]); }
public void MethodCallsAreLogged() { _tracker.ListNamespaces(); Assert.Equal(1, _tracker.Logs.Count); Assert.Equal(("ListNamespaces", null, null), _tracker.Logs[0]); var ns = Guid.NewGuid(); _tracker.CountIndex(ns.ToString()); Assert.Equal(2, _tracker.Logs.Count); Assert.Equal(("CountIndex", ns.ToString(), null), _tracker.Logs[1]); }
public void MethodCallsAreLogged() { _tracker.ListChainIds(); Assert.Equal(1, _tracker.Logs.Count); Assert.Equal( StoreTrackLog.Create("ListChainIds"), _tracker.Logs[0]); var chainId = Guid.NewGuid(); _tracker.CountIndex(chainId); Assert.Equal(2, _tracker.Logs.Count); Assert.Equal(StoreTrackLog.Create("CountIndex", chainId), _tracker.Logs[1]); }