예제 #1
0
        public void UriWithFiddlerWithPort()
        {
            // Arrange
            var          value         = new FiddlerSupportedUri(8080).AddFiddlerSupport();
            const string expectedValue = "http://localhost.fiddler:8080/";

            // Act
            string actualValue = value.ToString();

            // Assert
            Assert.IsTrue(value.IsFiddlerSafe);
            Assert.AreEqual(expectedValue, actualValue);
        }
예제 #2
0
        public void UriWithoutFiddler()
        {
            // Arrange
            var          value         = new FiddlerSupportedUri();
            const string expectedValue = "http://localhost/";

            // Act
            string actualValue = value.ToString();

            // Assert
            Assert.IsFalse(value.IsFiddlerSafe);
            Assert.AreEqual(expectedValue, actualValue);
        }
예제 #3
0
        public void UriWithFiddlerWithUri()
        {
            // Arrange
            var          uri           = new Uri("http://microsoft.com:8181");
            var          value         = new FiddlerSupportedUri(uri).AddFiddlerSupport();
            const string expectedValue = "http://microsoft.com:8181/";

            // Act
            string actualValue = value.ToString();

            // Assert
            Assert.IsFalse(value.IsFiddlerSafe);
            Assert.AreEqual(expectedValue, actualValue);
        }