public void GivenValidRemoteResourceNotRemoteFlag_WhenPing_ItReturnsFalse() { ComputerResource subject = new ComputerResource() { IsRemote = false, RemoteIp = "localhost" }; Assert.False(subject.TryPing()); }
public void GivenInvalidRemoteResource_WhenPing_ItReturnsFalse() { ComputerResource subject = new ComputerResource() { IsRemote = true, RemoteIp = "ABCD" }; Assert.False(subject.TryPing()); }
public void GivenValidRemoteResource_WhenPing_ItReturnsTrue() { ComputerResource subject = new ComputerResource() { IsRemote = true, RemoteIp = "localhost" }; Assert.True(subject.TryPing()); }