public void TestProjectGetter_ReturnsProjectPassedToConstructor() { var project = Substitute.For <ITfProject>(); var systemUnderTest = new TfGitRepository(new GitRepository(), project); Assert.That(systemUnderTest.Project, Is.EqualTo(project)); }
public void TestNameGetter_ReturnsNameOfRepoPassedToConstructor() { const string expectedName = "Any name would do"; var gitRepository = new GitRepository { Name = expectedName }; var systemUnderTest = new TfGitRepository(gitRepository, Substitute.For <ITfProject>()); Assert.That(systemUnderTest.Name, Is.EqualTo(expectedName)); }