public virtual void when_item_is_supported_then_factory_supports_it(string relativePath, string minimumVersion) { // Skip assertions if the VS is lower than the minimum version. if (!string.IsNullOrEmpty(minimumVersion) && GlobalServices.GetService <DTE>().Version.CompareTo(minimumVersion) == -1) { return; } var item = solution.NavigateToItem(relativePath); Assert.True(item != null, string.Format("Failed to locate solution element at {0} in solution {1}.", relativePath, solution.CanonicalName)); var factory = GetFactory(); Assert.True(factory.Supports(item)); var node = factory.CreateNode(item); Assert.NotNull(node); }