public void ToStringSerialisesAllValues()
        {
            BuildIntegrationRequest request = new BuildIntegrationRequest();

            request.Identifier     = "identifier";
            request.ProjectName    = "projectName";
            request.ServerName     = "serverName";
            request.SessionToken   = "sessionToken";
            request.SourceName     = "sourceName";
            request.Timestamp      = DateTime.Now;
            request.BuildCondition = BuildCondition.IfModificationExists;
            request.AddBuildValue("value1", "actual value");
            string actual   = request.ToString();
            string expected = string.Format(System.Globalization.CultureInfo.CurrentCulture, "<integrationMessage xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
                                            "timestamp=\"{4:yyyy-MM-ddTHH:mm:ss.FFFFFFFzzz}\" identifier=\"{0}\" server=\"{1}\" source=\"{2}\" session=\"{3}\" project=\"{5}\" condition=\"{6}\">" +
                                            "<buildValue name=\"value1\" value=\"actual value\" />" +
                                            "</integrationMessage>",
                                            request.Identifier,
                                            request.ServerName,
                                            request.SourceName,
                                            request.SessionToken,
                                            request.Timestamp,
                                            request.ProjectName,
                                            request.BuildCondition);

            Assert.AreEqual(expected, actual);
        }
        public void AddBuildValueAddsToUnderlyingList()
        {
            BuildIntegrationRequest request = new BuildIntegrationRequest();

            request.AddBuildValue("value1", "actual value");
            string actual = NameValuePair.FindNamedValue(request.BuildValues, "value1");

            Assert.AreEqual("actual value", actual);
        }