예제 #1
0
        private TemporaryFolder SetupDefaultOfflineLicenseInfo()
        {
            var folder = new TemporaryFolder("DefaultOfflineLicenseTest");

            LicenseChecker.SetOfflineFolder(folder.FolderPath);
            LicenseChecker.SetAllowInternetAccess(false);
            LicenseChecker.WriteObfuscatedFile(folder.FolderPath + "/license.cache", @"{
  ""range"": ""Sheet1!A1:B1001"",
  ""majorDimension"": ""ROWS"",
  ""values"": [
    [
      ""content-id\n"",
      ""language-code""
    ],
    [
      ""kingstone.superbible.*"",
      ""ar\n""
    ],
    [
      ""kingstone.superbible.*"",
      ""tr""
    ],
    [
      ""kingstone.superbible.*"",
      ""fa""
    ],
    [
      ""kingstone.superbible.*"",
      ""zh-CN""
    ],
    [
      ""kingstone.superbible.*"",
      ""in""
    ],
    [
      ""kingstone.superbible.*"",
      ""ne""
    ],
    [
      ""kingstone.superbible.*"",
      ""hi""
    ],
    [
      ""kingstone.superbible.*"",
      ""ru""
    ],
    [
      ""kingstone.superbible.*"",
      ""bn""
    ],
    [
      ""kingstone.superbible.ruth"",
      ""bjn""
    ]
  ]
}");
            return(folder);
        }