public void ToStringSerialisesDefaultValues()
        {
            BuildListRequest request  = new BuildListRequest();
            string           actual   = request.ToString();
            string           expected = string.Format(System.Globalization.CultureInfo.CurrentCulture, "<buildListMessage xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" " +
                                                      "timestamp=\"{2:yyyy-MM-ddTHH:mm:ss.FFFFFFFzzz}\" identifier=\"{0}\" source=\"{1}\" number=\"0\" />",
                                                      request.Identifier,
                                                      request.SourceName,
                                                      request.Timestamp);

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

            request.Identifier     = "identifier";
            request.ServerName     = "serverName";
            request.SessionToken   = "sessionToken";
            request.SourceName     = "sourceName";
            request.Timestamp      = DateTime.Now;
            request.NumberOfBuilds = 6;
            string actual   = request.ToString();
            string expected = string.Format(System.Globalization.CultureInfo.CurrentCulture, "<buildListMessage 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}\" number=\"6\" />",
                                            request.Identifier,
                                            request.ServerName,
                                            request.SourceName,
                                            request.SessionToken,
                                            request.Timestamp);

            Assert.AreEqual(expected, actual);
        }