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); }
public void GetSentryCliPath_InvalidFileName_ThrowsFileNotFoundException() { Assert.Throws <FileNotFoundException>(() => SentryCli.GetSentryCliPath("InvalidName")); }