public void CanReadRootNamespaceFromProjectFile()
        {
            var context = new ProjectTestContext(this.GetType().Name, "Test01");

            try
            {
                context.CreateProject();
                context.SetRootNamespaceInProject("Test");

                var folderInfo = new DotNetProjectFolderInfo(context.TargetProjectFolder);

                Assert.Equal("Test", folderInfo.RootNamespace);
            }
            finally
            {
                context.CleanUp();
            }
        }
        public void RootNamespaceTakesPreferenceToAssemblyName()
        {
            var context = new ProjectTestContext(this.GetType().Name, "Test03");

            try
            {
                context.CreateProject();
                context.SetRootNamespaceInProject("TestNamespace");
                context.SetAssemblyNameInProject("TestAssembly");

                var folderInfo = new DotNetProjectFolderInfo(context.TargetProjectFolder);

                Assert.Equal("TestNamespace", folderInfo.RootNamespace);
            }
            finally
            {
                context.CleanUp();
            }
        }