-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from ricaun-io/develop
Version 1.1.0
- Loading branch information
Showing
12 changed files
with
255 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using NUnit.Framework; | ||
using RevitAddin.CommandLoader.Services; | ||
using System; | ||
|
||
namespace RevitAddin.CommandLoader.Tests | ||
{ | ||
public class GistGithubUtilsTests | ||
{ | ||
private const string GIST_SOURCE = "https://gist.github.com/ricaun/200a576c3baa45cba034ceedac1e708e"; | ||
|
||
[Test] | ||
public void Test_TryGetGistFilesContent() | ||
{ | ||
var hasGistContent = GistGithubUtils.TryGetGistFilesContent(GIST_SOURCE, out string[] contents); | ||
Assert.IsTrue(hasGistContent, "Gist content not found."); | ||
} | ||
|
||
[Test] | ||
public void Test_TryGetGistModel() | ||
{ | ||
var hasGistContent = GistGithubUtils.TryGetGistModel(GIST_SOURCE, out var model); | ||
Assert.IsTrue(hasGistContent, "Gist content not found."); | ||
} | ||
|
||
[Test] | ||
public void Test_TryGetGistId() | ||
{ | ||
var hasGistContent = GistGithubUtils.TryGetGistId(GIST_SOURCE, out var id); | ||
Assert.IsTrue(hasGistContent, "Gist content not found."); | ||
Console.WriteLine(id); | ||
} | ||
|
||
[Test] | ||
public void Test_TryGetGistString() | ||
{ | ||
var hasGistContent = GistGithubUtils.TryGetGistString(GIST_SOURCE, out string content); | ||
Assert.IsTrue(hasGistContent, "Gist content not found."); | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.