public void Should_Not_Throw_If_Settings_Is_Null() { // Given var fixture = new SvnInfoFixture { Settings = null }; // When fixture.IsWorkingCopy(); }
public void Should_Proxy_Call_To_GetInfo_OnSvnClient() { // Given var fixture = new SvnInfoFixture(); // When fixture.IsWorkingCopy(); // Then fixture.SvnClient.Received(1).IsWorkingCopy(fixture.DirectoryPath.ToString()); fixture.SvnClient.Received(1).IsWorkingCopy(fixture.FilePath.ToString()); }
public void Should_Throw_If_FilePath_Is_Null() { // Given var fixture = new SvnInfoFixture { FilePath = null }; // When // Then Assert.Throws <ArgumentNullException>("filePath", () => fixture.IsWorkingCopy()); }
public void Should_Not_Force_Credentials_If_Null() { // Given var fixture = new SvnInfoFixture { Settings = new SvnInfoSettings { Credentials = null } }; // When fixture.IsWorkingCopy(); // Then fixture.SvnClient.DidNotReceive().ForceCredentials(Arg.Any <SvnCredentials>()); }
public void Should_Not_Force_Credentials_If_Not_Null() { // Given SvnCredentials credentials = new SvnCredentials { Username = "******", Password = "******" }; var fixture = new SvnInfoFixture { Settings = new SvnInfoSettings { Credentials = credentials } }; // When fixture.IsWorkingCopy(); // Then fixture.SvnClient.DidNotReceive().ForceCredentials(credentials); }