Beispiel #1
0
        public void NuGetDependenciesSubTreeProvider_CreateRootNode()
        {
            var provider = new TestableNuGetDependenciesSubTreeProvider();

            var rootNode = provider.TestCreateRootNode();

            Assert.True(rootNode is SubTreeRootDependencyNode);
            Assert.True(rootNode.Flags.Contains(NuGetDependenciesSubTreeProvider.NuGetSubTreeRootNodeFlags));
            Assert.Equal("NuGet", rootNode.Caption);
            Assert.Equal(KnownMonikers.PackageReference, rootNode.Icon);
            Assert.Equal(NuGetDependenciesSubTreeProvider.ProviderTypeString, rootNode.Id.ProviderType);
        }