Exemplo n.º 1
0
        public void ProjectConfiguration_ToString_ReturnCorrectlyFormatedValue()
        {
            string id             = "1";
            string name           = "2";
            string href           = "3";
            string webUrl         = "4";
            string projectId      = "5";
            string projectName    = "6";
            string expectedResult = string.Format(
                "Id: {0}, Name: {1}, Href: {2}, WebUrl: {3}, ProjectId: {4}, ProjectName: {5}",
                id,
                name,
                href,
                webUrl,
                projectId,
                projectName);

            var projectConfiguration = new ProjectConfiguration
            {
                Id          = id,
                Name        = name,
                Href        = href,
                WebUrl      = webUrl,
                ProjectId   = projectId,
                ProjectName = projectName
            };

            Assert.AreEqual(expectedResult, projectConfiguration.ToString());
        }