public void NormalizeGroups_WithEmptyGroup()
        {
            // Arrange
            var templatesDir = "C:/wwwroot/templates";
            var group = Path.Combine(templatesDir, "somegroup");
            var options = new GeneratorOptions();
            var filesProvider = new Mock<IFilesProvider>();
            filesProvider
                .Setup(p => p.EnumerateDirectories(templatesDir))
                .Returns(new[] { "somegroup" });
            var coreGenerator = new CoreGenerator(options, filesProvider.Object);

            // Act
            var result = coreGenerator.NormalizeGroups(templatesDir, new[] { "" });

            // Arrange
            Assert.True(result.Length == 2);
            Assert.True(result[0] == "~");
            Assert.True(result[1] == "somegroup");
        }
        public void NormalizeGroups_WithNormalGroups(string concatGroups)
        {
            // Arrange
            var groups = concatGroups.Split(' ');
            var templatesDir = "C:/wwwroot/templates";
            var options = new GeneratorOptions();
            var filesProvider = new Mock<IFilesProvider>();
            var coreGenerator = new CoreGenerator(options, filesProvider.Object);

            // Act
            var result = coreGenerator.NormalizeGroups(templatesDir, groups);

            // Arrange
            Assert.Same(groups, result);
        }