public void Can_Generate_Css_Possiblity()
 {
     var aliases = new List<string> { "css" };
     var pathMapper = new MockPathMapper();
     var syntaxPossiblities = new SyntaxPossibilities(pathMapper, "CSharp");
     var csharpPossiblity = syntaxPossiblities.FindPossibility("Css");
     Assert.IsNotNull(csharpPossiblity);
     aliases.ForEach(alias => Assert.IsTrue(csharpPossiblity.PossibleAliases.Contains(alias)));
 }
Esempio n. 2
0
 public void Can_Generate_Possibilities_For_Various_Brushes()
 {
     var possibleBrushes = new List<string> { "AppleScript", "AS3", "Bash", "ColdFusion",
                                              "Cpp", "CSharp", "Css", "Delphi", "Diff",
                                              "Erlang", "Groovy", "Java", "JavaFX", "JScript",
                                              "Perl", "Php", "Plain", "PowerShell", "Python",
                                              "Ruby", "Sass", "Scala", "Sql", "Vb", "Xml" };
     var pathMapper = new MockPathMapper();
     var syntaxPossiblities = new SyntaxPossibilities(pathMapper, "CSharp");
     possibleBrushes.ForEach(brush => Assert.IsNotNull(syntaxPossiblities.FindPossibility(brush)));
     possibleBrushes.ForEach(brush =>
     {
         SyntaxPossibility possibility = syntaxPossiblities.FindPossibility(brush);
         possibility.PossibleAliases.ForEach(alias => Assert.IsFalse(string.IsNullOrEmpty(alias)));
     });
 }