public void ProjectMacroDefinitionShouldGetValueFromQueryDefinition()
        {
            //Arrange
            var projectMacro = new ProjectMacro(tfsContextMock);
            bool projectGetterWasCalled = false;
            bool projectNameWasCalled = false;

            ShimQueryItem.AllInstances.ProjectGet = (q) =>
            {
                projectGetterWasCalled = true;
                return projectShim;
            };

            string projectName = projectShim.Instance.Name;

            projectShim.NameGet = () =>
            {
                projectNameWasCalled = true;
                return projectName;
            };

            //Act
            string value = projectMacro.GetValue(new ShimQueryDefinition());

            //Assert

            Assert.IsTrue(projectGetterWasCalled, "Property accessor Project on QueryDefinition was not called");
            Assert.IsTrue(projectNameWasCalled, "Property accessor Name on Project was not called");
            Assert.AreEqual("\"TestProject\"", value);
        }
        public void ProjectMacroDefinitionShouldSetMacroName()
        {
            var projectMacro = new ProjectMacro(A.Dummy<ITfsContext>());

            Assert.AreEqual("Project", projectMacro.Name);
        }