public void ToString_ShouldGiveHumanReadableString() { var memoryOutput = new MemoryOutput(); memoryOutput.Write(0x41); Assert.Equal("A", memoryOutput.ToString()); }
public void Initialize() { this.resolver = new DependencyResolver(); this.resolver.Bind <ITypeMapping>().ToSingleton <TypeMapping>(); this.resolver.Create <CoreModule>().Initialize(); this.resolver.Create <CsharpModule>().Initialize(); this.resolver.Create <AspDotNetModule>().Initialize(); this.output = this.resolver.Create <MemoryOutput>(); }
public void Initialize() { this.output = new MemoryOutput(); this.generator = Generator.Initialize() .PreloadModule <CsharpModule>() .PreloadModule <TypeScriptModule>() .PreloadModule <ReflectionModule>() .SetOutput(this.output); }
public void Initialize() { this.resolver = new DependencyResolver(); this.resolver.Bind <ITypeMapping>().ToSingleton <TypeMapping>(); this.resolver.Bind <IConfigurationReaderVersion>().To <ConfigurationReaderVersion2>(); this.resolver.Bind <ReaderConfigurationMapping>().ToSingleton(); this.resolver.Bind <WriterConfigurationMapping>().ToSingleton(); this.resolver.Create <CoreModule>().Initialize(); this.resolver.Create <CsharpModule>().Initialize(); this.resolver.Create <TsqlModule>().Initialize(); this.reader = this.resolver.Create <ConfigurationsReader>(); this.runner = this.resolver.Create <ConfigurationRunner>(); this.output = this.resolver.Create <MemoryOutput>(); }