public BlenXAuthoringScope(Babel.Parser.Parser parser, Babel.Source source) { this.parser = parser; this.source = source; // how should this be set? this.resolver = new Babel.Resolver(); }
/// <summary> /// Create a list of words from an input of characters and a word size /// </summary> /// <param name="langle">Tha language manager</param> /// <param name="charIndex">The array of character indexes</param> /// <param name="wordSize">The size of the word</param> public WordCombiner(Babel langle, Char[] characters, byte wordSize) { this.Words = new List <Word>(); this.WordSize = wordSize; this.Characters = characters; this.Combinations = CalculateCombinations(characters.Length, wordSize); this.Permutations = (int)Math.Pow(wordSize, wordSize); }
public void SetUp() { _environment = new Mock<IReactEnvironment>(); _cache = new Mock<ICache>(); _fileSystem = new Mock<IFileSystem>(); _fileSystem.Setup(x => x.MapPath(It.IsAny<string>())).Returns<string>(x => x); _fileCacheHash = new Mock<IFileCacheHash>(); _babel = new Babel( _environment.Object, _cache.Object, _fileSystem.Object, _fileCacheHash.Object, ReactSiteConfiguration.Configuration ); }
public void SetUp() { _environment = new Mock <IReactEnvironment>(); _cache = new Mock <ICache>(); _fileSystem = new Mock <IFileSystem>(); _fileSystem.Setup(x => x.MapPath(It.IsAny <string>())).Returns <string>(x => x); _fileCacheHash = new Mock <IFileCacheHash>(); _babel = new Babel( _environment.Object, _cache.Object, _fileSystem.Object, _fileCacheHash.Object, ReactSiteConfiguration.Configuration ); }
public void SetUp() { _environment = new Mock<IReactEnvironment>(); _cache = new Mock<ICache>(); _fileSystem = new Mock<IFileSystem>(); _fileSystem.Setup(x => x.MapPath(It.IsAny<string>())).Returns<string>(x => x); // Per default the output file should not exist, then individual tests // can choose otherwise. _fileSystem.Setup(x => x.FileExists(It.IsAny<string>())).Returns(false); _fileCacheHash = new Mock<IFileCacheHash>(); _babel = new Babel( _environment.Object, _cache.Object, _fileSystem.Object, _fileCacheHash.Object, ReactSiteConfiguration.Configuration ); }
public void SetUp() { _environment = new Mock <IReactEnvironment>(); _cache = new Mock <ICache>(); _fileSystem = new Mock <IFileSystem>(); _fileSystem.Setup(x => x.MapPath(It.IsAny <string>())).Returns <string>(x => x); // Per default the output file should not exist, then individual tests // can choose otherwise. _fileSystem.Setup(x => x.FileExists(It.IsAny <string>())).Returns(false); _fileCacheHash = new Mock <IFileCacheHash>(); _babel = new Babel( _environment.Object, _cache.Object, _fileSystem.Object, _fileCacheHash.Object, ReactSiteConfiguration.Configuration ); }