コード例 #1
0
 public void TestNothing() {
     const string resource = @"http://config.mwf.local/NorthWind.xml";
     var expected = new Dictionary<string, string>();
     var actual = new WebReader().Read(resource, new TraceLogger()).Parameters;
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
 public void TestExAndWhy() {
     const string resource = @"http://config.mwf.local/NorthWind.xml?x&y";
     var expected = new Dictionary<string, string> { { "x", string.Empty }, { "y", string.Empty } };
     var actual = new WebReader().Read(resource, new TraceLogger()).Parameters;
     Assert.AreEqual(expected, actual);
 }
コード例 #3
0
 public void TestUrl() {
     const string resource = @"http://config.mwf.local/NorthWind.xml?mode=init&title=hello%20world";
     var expected = new Dictionary<string, string> { { "mode", "init" }, { "title", "hello world" } };
     var actual = new WebReader().Read(resource, new TraceLogger()).Parameters;
     Assert.AreEqual(expected, actual);
 }