コード例 #1
0
 public void UserAgentHeaderIsCorrect(Version version, string detailedVersion, string os, string runtime, string runtimeVersion, string expected)
 {
     Assert.Equal(expected, Constants.ConstructUserAgent(version, detailedVersion, os, runtime, runtimeVersion));
 }
コード例 #2
0
        public void UserAgentHeaderIsCorrect(string testDataName)
        {
            var testData = UserAgents[testDataName];

            Assert.Equal(testData.Expected, Constants.ConstructUserAgent(testData.Version, testData.DetailedVersion, testData.Os, testData.Runtime, testData.RuntimeVersion));
        }