示例#1
0
        public void GetName_Returns_ExpectedVariableName()
        {
            ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path");
            ProfileGroupType profileGroupType            = new ProfileGroupType("prefix");

            profileGroupType.AddVariable(buildPath);
            Assert.AreEqual("prefix.BuildPath", profileGroupType.GetName(buildPath));
        }
        public void GetName_Returns_ExpectedVariableName()
        {
            ProfileGroupType.GroupTypeVariable buildPath = new ProfileGroupType.GroupTypeVariable("BuildPath", "Test Build Path");
            ProfileGroupType profileGroupType            = new ProfileGroupType("prefix");
            bool             gtAdded = profileGroupType.AddVariable(buildPath);

            Assert.IsTrue(gtAdded, $"Failed to add groupType {gtAdded}");
            Assert.AreEqual("prefix.BuildPath", profileGroupType.GetName(buildPath));
        }