Пример #1
0
        public void GetSentryCliPath_ValidFileName_ReturnsPath()
        {
            var sentryCliPlatformName = SentryCli.GetSentryCliPlatformName(new TestApplication(platform: Application.platform));
            var expectedPath          = Path.GetFullPath(
                Path.Combine("Packages", SentryPackageInfo.GetName(), "Editor", "sentry-cli", sentryCliPlatformName));

            var actualPath = SentryCli.GetSentryCliPath(sentryCliPlatformName);

            Assert.AreEqual(expectedPath, actualPath);
        }
Пример #2
0
 public void GetSentryCliPath_InvalidFileName_ThrowsFileNotFoundException()
 {
     Assert.Throws <FileNotFoundException>(() => SentryCli.GetSentryCliPath("InvalidName"));
 }