public void ShouldThrowOnNull()
        {
            var target = new BasePathInput {
                SuppliedInput = null
            };
            var fileSystemMock = new MockFileSystem();

            var exception = Should.Throw <InputException>(() => target.Validate(fileSystemMock));

            exception.Message.ShouldBe("Base path can't be null or empty.");
        }
        public void ShouldThrowOnNonexistentDir()
        {
            var target = new BasePathInput {
                SuppliedInput = "C:/MyDir/"
            };
            var fileSystemMock = new MockFileSystem();

            var exception = Should.Throw <InputException>(() => target.Validate(fileSystemMock));

            exception.Message.ShouldBe("Base path must exist.");
        }
        public void ShouldAllowExistingDir()
        {
            var target = new BasePathInput {
                SuppliedInput = "C:/MyDir/"
            };
            var fileSystemMock = new MockFileSystem();

            fileSystemMock.AddDirectory("C:/MyDir/");

            var result = target.Validate(fileSystemMock);

            result.ShouldBe("C:/MyDir/");
        }
        public void ShouldHaveHelpText()
        {
            var target = new BasePathInput();

            target.HelpText.ShouldBe(@$ "The path from which stryker is started.");
        }