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); }
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); }
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); }