Beispiel #1
0
 /// <summary>
 /// Converts the reference to a string using the specified format
 /// </summary>
 public string ToString(GitHubReferenceFormat format) => format switch
 {
Beispiel #2
0
            public void ToString_returns_expected_value_when_format_is_specified(string owner, string repo, int id, GitHubReferenceFormat format, string expected)
            {
                // ARRANGE
                var project = new GitHubProjectInfo("example.com", owner, repo);
                var sut     = new GitHubReference(project, id);

                // ACT
                var actual = sut.ToString(format);

                // ASSERT
                Assert.Equal(expected, actual);
            }