コード例 #1
0
ファイル: ClassRunner.cs プロジェクト: najeraz/fixie
 string GetSkipReason(SkipBehavior skipBehavior, Case @case)
 {
     try
     {
         return(skipBehavior.GetSkipReason(@case));
     }
     catch (Exception exception)
     {
         throw new Exception(
                   "Exception thrown while attempting to get a custom case-skipped reason. " +
                   "Check the inner exception for more details.", exception);
     }
 }
コード例 #2
0
ファイル: ClassRunner.cs プロジェクト: najeraz/fixie
 bool SkipCase(SkipBehavior skipBehavior, Case @case)
 {
     try
     {
         return(skipBehavior.SkipCase(@case));
     }
     catch (Exception exception)
     {
         throw new Exception(
                   "Exception thrown while attempting to run a custom case-skipping predicate. " +
                   "Check the inner exception for more details.", exception);
     }
 }
コード例 #3
0
    private void PickBehavior()
    {
        int m_behavior = Random.Range(0, 3);

        switch (m_behavior)
        {
        case 0:
            m_skipBehavior = SkipBehavior.BasicBehavior;
            break;

        case 1:
            m_skipBehavior = SkipBehavior.StrategicBehavior;
            break;

        case 2:
            m_skipBehavior = SkipBehavior.CopyBehavior;
            break;

        default:
            m_skipBehavior = SkipBehavior.BasicBehavior;
            break;
        }
    }
コード例 #4
0
ファイル: ClassRunner.cs プロジェクト: jbogard/fixie
 string GetSkipReason(SkipBehavior skipBehavior, Case @case)
 {
     try
     {
         return skipBehavior.GetSkipReason(@case);
     }
     catch (Exception exception)
     {
         throw new Exception(
             "Exception thrown while attempting to get a custom case-skipped reason. " +
             "Check the inner exception for more details.", exception);
     }
 }
コード例 #5
0
ファイル: ClassRunner.cs プロジェクト: jbogard/fixie
 bool SkipCase(SkipBehavior skipBehavior, Case @case)
 {
     try
     {
         return skipBehavior.SkipCase(@case);
     }
     catch (Exception exception)
     {
         throw new Exception(
             "Exception thrown while attempting to run a custom case-skipping predicate. " +
             "Check the inner exception for more details.", exception);
     }
 }
コード例 #6
0
 /// <summary>
 /// Allows the specified predicate to determine whether a given test case should be skipped
 /// during execution. Skipped test cases are never executed, but are counted and identified.
 /// When a test is skipped, the behavior may include an optional explanation in the output.
 /// </summary>
 public CaseBehaviorExpression Skip(SkipBehavior behavior)
 {
     return(Skip(behavior.SkipCase, behavior.GetSkipReason));
 }
コード例 #7
0
ファイル: Configuration.cs プロジェクト: jbogard/fixie
 public void AddSkipBehavior(SkipBehavior skipBehavior)
 {
     skipBehaviors.Add(skipBehavior);
 }
コード例 #8
0
ファイル: Configuration.cs プロジェクト: najeraz/fixie
 public void AddSkipBehavior(SkipBehavior skipBehavior)
 {
     skipBehaviors.Add(skipBehavior);
 }