public void GetTcmPropertiesShouldCopyMultiplePropertiesCorrectlyFromTestCase()
        {
            // Verify 1st call.
            var testCase1        = new TestCase("PassingTestFomTestCase", new Uri("http://sampleUri/"), "unittestproject1.dll");
            var propertiesValue1 = new object[]
            {
                32, 534, 5, "sample build directory", "sample build flavor",
                "132456", "sample build platform", "http://sampleBuildUri/",
                "http://samplecollectionuri/", "sample team project", false,
                1401, 54, "sample configuration name", 345
            };

            this.SetTestCaseProperties(testCase1, propertiesValue1);
            var tcmProperties1 = TcmTestPropertiesProvider.GetTcmProperties(testCase1);

            this.VerifyTcmProperties(tcmProperties1, testCase1);

            // Verify 2nd call.
            var testCase2        = new TestCase("PassingTestFomTestCase2", new Uri("http://sampleUri2/"), "unittestproject2.dll");
            var propertiesValue2 = new object[]
            {
                33, 535, 6, "sample build directory 2", "sample build flavor 2",
                "132457", "sample build platform 2", "http://sampleBuildUri2/",
                "http://samplecollectionuri2/", "sample team project", true,
                1403, 55, "sample configuration name 2", 346
            };

            this.SetTestCaseProperties(testCase2, propertiesValue2);
            var tcmProperties2 = TcmTestPropertiesProvider.GetTcmProperties(testCase2);

            this.VerifyTcmProperties(tcmProperties2, testCase2);
        }
        public void GetTcmPropertiesShouldReturnEmptyDictionaryIfTestCaseIdIsZero()
        {
            var testCase        = new TestCase("PassingTestFomTestCase", new Uri("http://sampleUri/"), "unittestproject1.dll");
            var propertiesValue = new object[]
            {
                32, 534, 5, "sample build directory", "sample build flavor",
                "132456", "sample build platform", "http://sampleBuildUri/",
                "http://samplecollectionuri/", "sample team project", false,
                0, 54, "sample configuration name", 345
            };

            this.SetTestCaseProperties(testCase, propertiesValue);

            var tcmProperties = TcmTestPropertiesProvider.GetTcmProperties(testCase);

            Assert.AreEqual(0, tcmProperties.Count);
        }
        public void GetTcmPropertiesShouldGetAllPropertiesFromTestCase()
        {
            var testCase        = new TestCase("PassingTestFomTestCase", new Uri("http://sampleUri/"), "unittestproject1.dll");
            var propertiesValue = new object[]
            {
                32, 534, 5, "sample build directory", "sample build flavor",
                "132456", "sample build platform", "http://sampleBuildUri/",
                "http://samplecollectionuri/", "sample team project", false,
                1401, 54, "sample configuration name", 345
            };

            this.SetTestCaseProperties(testCase, propertiesValue);

            var tcmProperties = TcmTestPropertiesProvider.GetTcmProperties(testCase);

            this.VerifyTcmProperties(tcmProperties, testCase);
        }
        public void GetTcmPropertiesShouldReturnEmptyDictionaryIfTestCaseIsNull()
        {
            var tcmProperties = TcmTestPropertiesProvider.GetTcmProperties(null);

            Assert.AreEqual(0, tcmProperties.Count);
        }