コード例 #1
0
ファイル: FeedManagerTests.cs プロジェクト: vishalishere/vrs
        public void FeedManager_Connect_Passes_The_Call_Through_To_Listeners()
        {
            _Manager.Initialise();

            // Can't use Verify as that will count the connect from Initialise as well and it gets a bit messy
            bool seenConnectCall = false;

            _CreatedListeners[0].Setup(r => r.Connect()).Callback(() => seenConnectCall = true);

            _Manager.Connect();

            Assert.IsTrue(seenConnectCall);
        }