コード例 #1
0
        public void NPlugin_Invoke_Throw_WhenMissingDependencies_Test()
        {
            var    p = new NPlugin(null);
            string x = p.Format(1);

            _beepMock.Verify(m => m.Beep(), Times.Exactly(2));
        }
コード例 #2
0
        public void NPlugin_InvokeBeepTwice_Test()
        {
            var    p = new NPlugin(new[] { _beepMock.Object, _beepMock.Object });
            string x = p.Format(1);

            _beepMock.Verify(m => m.Beep(), Times.Exactly(2));
        }