コード例 #1
0
        public void Test_ExceptionThrowed_BaseService_Resolve(FrameworkType frameworkType)
        {
            // Arrange
            var executor = _commandExecutorBaseProvider.Get(frameworkType);
            var action   = new IdentityCommand <int>();

            // Act
            var exception = Assert.Throws <ArgumentException>(
                () => executor.ExecuteAction(action, throwOnException: true));

            // Assert
            Assert.IsType <Exception>(exception.InnerException);
        }
コード例 #2
0
 public void ExecuteAction(IdentityCommand <int> action, bool throwOnException)
 {
     action.Execute(GetValue(), throwOnException);
 }