Exemplo n.º 1
0
        public void ExistsDirectory_should_return_false_if_directory_does_not_exist()
        {
            // Arrange
            var fixture = new Fixture().Customize(new AutoMoqCustomization());

            var envRepos = new EnvironmentRepository();

            // Act
            var result = envRepos.ExistsDirectory(fixture.Create<string>());

            // Assert
            Assert.IsFalse(result);
        }
Exemplo n.º 2
0
        public void ExistsDirectory_should_return_true_if_directory_exists()
        {
            // Arrange
            var envRepos = new EnvironmentRepository();

            // Act
            var result = envRepos.ExistsDirectory(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location));

            // Assert
            Assert.IsTrue(result);
        }