public void BuildStringOfItems_TestQueryItems_StringContainsItemsInExpectedFormat()
        {
            var queryItems = new SortedDictionary<string, string> { { "TestKey1", "TestValue1" }, { "TestKey2", "TestValue2" } };

            var api = new WebRequestRestApiUnderTest();

            // Act
            string queryString = api.BuildStringOfItemsUnderTest(queryItems);

            // Assert
            Assert.AreEqual(queryString, FormatQueryItemsAsQueryString(queryItems));
        }
Example #2
0
        public void BuildStringOfItems_TestQueryItems_StringContainsItemsInExpectedFormat()
        {
            var queryItems = new Dictionary <string, string> {
                { "TestKey1", "TestValue1" }, { "TestKey2", "TestValue2" }
            };

            var api = new WebRequestRestApiUnderTest();

            // Act
            string queryString = api.BuildStringOfItemsUnderTest(queryItems);

            // Assert
            Assert.AreEqual(queryString, FormatQueryItemsAsQueryString(queryItems));
        }