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

            folders = new FolderTestModel();
        }
예제 #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);
 }
예제 #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);
 }
예제 #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);
 }