/// <summary> /// Converts the reference to a string using the specified format /// </summary> public string ToString(GitHubReferenceFormat format) => format switch {
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); }