System.CodeDom.Tests.TempFileCollectionTests.BasePath_Get C# (CSharp) Method

BasePath_Get() private method

private BasePath_Get ( string tempDir ) : void
tempDir string
return void
        public void BasePath_Get(string tempDir)
        {
            var collection = new TempFileCollection(tempDir);
            if (Directory.Exists(tempDir))
            {
                Assert.StartsWith(tempDir, collection.BasePath);
            }
            else
            {
                Assert.Throws<DirectoryNotFoundException>(() => collection.BasePath);
                Assert.StartsWith(tempDir, collection.BasePath);
            }
        }