Exemplo n.º 1
0
        [SetUp] public void SetUp() {
            memory = new TypeDictionary();
            memory.GetItem<Settings>().InputFolder = "in";
            memory.GetItem<Settings>().OutputFolder = "out";

            folders = new FolderTestModel();
        }
Exemplo n.º 2
0
 [Test] public void CustomAppConfigFromSuiteConfigIsUsed() {
     var folders = new FolderTestModel();
     folders.MakeFile("suite.config.xml", "<config><Settings><AppConfigFile>fitSharpTest.dll.alt.config</AppConfigFile></Settings></config>");
     int result = RunShell(new[] {"-c", "suite.config.xml",
         "-r", typeof (SampleRunner).FullName + "," + typeof (SampleRunner).Assembly.CodeBase}, folders );
     Assert.AreEqual(606, result);
 }
Exemplo n.º 3
0
 [Test] public void RunnerFromSuiteConfigIsUsed() {
     var folders = new FolderTestModel();
     folders.MakeFile("suite.config.xml", "<config><Settings><Runner>"
         + typeof (SampleRunner).FullName + "," + typeof (SampleRunner).Assembly.CodeBase
         + "</Runner></Settings></config>");
     int result = RunShell(new[] {"-c", "suite.config.xml"}, folders );
     Assert.AreEqual(SampleRunner.Result, result);
 }
Exemplo n.º 4
0
 [Test] public void ApartmentStateFromSuiteConfigIsUsed() {
     var folders = new FolderTestModel();
     folders.MakeFile("suite.config.xml", "<config><Settings><ApartmentState>STA</ApartmentState></Settings></config>");
     RunShell(new[] {"-r", typeof(SampleRunner).FullName, "-c", "suite.config.xml"}, folders );
     Assert.AreEqual(ApartmentState.STA, SampleRunner.ApartmentState);
 }