public TestCaseExecutor(
     TestExecutionData executionData,
     string wopiEndpoint,
     string accessToken,
     long accessTokenTtl,
     string userAgent,
     RSACryptoServiceProvider proofKeyProviderNew = null,
     RSACryptoServiceProvider proofKeyProviderOld = null)
 {
     TestCase            = executionData.TestCase;
     PrereqCases         = executionData.PrereqCases;
     ResourceManager     = executionData.ResourceManager;
     WopiEndpoint        = wopiEndpoint;
     AccessToken         = accessToken;
     AccessTokenTtl      = accessTokenTtl;
     UserAgent           = userAgent;
     ProofKeyProviderNew = proofKeyProviderNew;
     ProofKeyProviderOld = proofKeyProviderOld;
 }
Example #2
0
 /// <summary>
 /// This function applies the rules of category filtering. If this returns true, the test should be included based on the category.
 ///
 /// The rules to apply are as follows:
 /// If the filterCategory is All or null, the test should be included.
 /// If the test's category is WopiCore, it should be included (all WopiCore tests should always be included).
 /// If the test's category matches the filterCategory, it should be included.
 /// </summary>
 internal static bool TestCategoryMatches(this TestExecutionData testData, TestCategory?filterCategory)
 {
     return(TestCategoryMatches(testData.TestCase, filterCategory));
 }