예제 #1
0
        public void GivenValidRemoteResourceNotRemoteFlag_WhenPing_ItReturnsFalse()
        {
            ComputerResource subject = new ComputerResource()
            {
                IsRemote = false,
                RemoteIp = "localhost"
            };

            Assert.False(subject.TryPing());
        }
예제 #2
0
        public void GivenInvalidRemoteResource_WhenPing_ItReturnsFalse()
        {
            ComputerResource subject = new ComputerResource()
            {
                IsRemote = true,
                RemoteIp = "ABCD"
            };

            Assert.False(subject.TryPing());
        }
예제 #3
0
        public void GivenValidRemoteResource_WhenPing_ItReturnsTrue()
        {
            ComputerResource subject = new ComputerResource()
            {
                IsRemote = true,
                RemoteIp = "localhost"
            };

            Assert.True(subject.TryPing());
        }