示例#1
0
        public void InstantiateMockFileSystemHasValidCurrentDirectorySet()
        {
            // Arrange

            // Act
            var fs = new MockFileSystem();

            // Assert
            Assert.IsNotNull(fs.GetCurrentDirectory());
            Assert.IsTrue(fs.GetCurrentDirectory().Length >= 3);
            Assert.IsTrue(Regex.IsMatch(fs.GetCurrentDirectory(), "[A-Za-z]:\\.*", RegexOptions.IgnoreCase));
        }