Exemplo n.º 1
0
        public void Internet_ConnectToGoogle_ReturnConnectedToGoogle()
        {
            var          internet         = new InternetProxy();
            var          calculatedResult = internet.ConnectTo("google.com");
            const string expectedResult   = "Connected to: google.com";

            Assert.That(expectedResult, Is.EqualTo(calculatedResult));
        }
Exemplo n.º 2
0
        public void Internet_ConnectToGoogle_ThrowsException()
        {
            var internet = new InternetProxy();

            Assert.Throws <Exception>(() => internet.ConnectTo("abc.com"));
        }