コード例 #1
0
        public void SutNotCreated_SetsDependencyAsLooseMock()
        {
            //arrange

            //act
            _testSuit.SetDependencyToLooseMock <IDependency2>();

            //assert
            _testSuit.Sut.Dependency2.Invoking(d => d.Action2()).Should().NotThrow(" its a loose mock");
        }
コード例 #2
0
 public CommandExecutorTests()
 {
     _suit.Reset();
     _suit.SetDependencyToLooseMock <ILogger <CommandExecutor> >();
 }