コード例 #1
0
        public void ResolveAllByType_WithValidData_ShouldInvokeMockMethod()
        {
            DexterContainer.SetCurrent(this.mockContainer.Object);

            DexterContainer.ResolveAll(typeof(DexterContainerTest));

            this.mockContainer.Verify(x => x.ResolveAll(typeof(DexterContainerTest)));
        }
コード例 #2
0
        public void ResolveAll_WithValidData_ShouldInvokeMockMethod()
        {
            DexterContainer.SetCurrent(this.mockContainer.Object);

            DexterContainer.ResolveAll <DexterContainerTest>();

            this.mockContainer.Verify(x => x.ResolveAll <DexterContainerTest>(), Times.Once());
        }
コード例 #3
0
 public void ResolveAllByType_WithNullType_ShouldThrowArgumentNullException()
 {
     Executing.This(() => DexterContainer.ResolveAll(null)).Should().Throw <ArgumentNullException>();
 }