public void Runner_InvalidMethodArgument_AssemblyMissing(string arguments)
		{
			CapturedOutput messages = new CapturedOutput();
			Runner underTest = new Runner(messages);

			underTest.ExecuteMethod(new string[] { "/AssemblyPath:C:\\windows\\twain.dll", "/TypeName:foo", arguments });

			Assert.Equal("The /MethodName argument is missing or incomplete", messages.Output[0]);
		}
		public void Runner_InvalidAssemblyArgument_AssemblyMissing(string arguments)
		{
			CapturedOutput messages = new CapturedOutput();
			Runner underTest = new Runner(messages);

			underTest.ExecuteMethod(new string[] {arguments});

			Assert.Equal("The /AssemblyPath argument is missing or incomplete", messages.Output[0]);
		}
		public void Runner_GarbagePath_FileNotFoundMessage()
		{
			CapturedOutput messages = new CapturedOutput();
			Runner underTest = new Runner(messages);

			underTest.ExecuteMethod(new string[] { "/AssemblyPath:c:/1sfaserdf.dll" }); //If anyone has this file in the root of their C drive they need help

			Assert.Equal("Requested assembly not found", messages.Output[0]);
		}
        public void Runner_InvalidMethodArgument_AssemblyMissing(string arguments)
        {
            CapturedOutput messages  = new CapturedOutput();
            Runner         underTest = new Runner(messages);

            underTest.ExecuteMethod(new string[] { "/AssemblyPath:C:\\windows\\twain.dll", "/TypeName:foo", arguments });

            Assert.Equal("The /MethodName argument is missing or incomplete", messages.Output[0]);
        }
        public void Runner_GarbagePath_FileNotFoundMessage()
        {
            CapturedOutput messages  = new CapturedOutput();
            Runner         underTest = new Runner(messages);

            underTest.ExecuteMethod(new string[] { "/AssemblyPath:c:/1sfaserdf.dll" });             //If anyone has this file in the root of their C drive they need help

            Assert.Equal("Requested assembly not found", messages.Output[0]);
        }
        public void Runner_InvalidAssemblyArgument_AssemblyMissing(string arguments)
        {
            CapturedOutput messages  = new CapturedOutput();
            Runner         underTest = new Runner(messages);

            underTest.ExecuteMethod(new string[] { arguments });

            Assert.Equal("The /AssemblyPath argument is missing or incomplete", messages.Output[0]);
        }
        public void Runner_ValidateOutput(string methodName, string returnValue)
        {
            CapturedOutput messages  = new CapturedOutput();
            Runner         underTest = new Runner(messages);

            underTest.ExecuteMethod(new string[] {
                // Yeah, yeah. the path is specific to my hard drive. But based upon my RedGreen experience. Nary a soul besides me will ever run the tests
                "/AssemblyPath:C:\\Users\\JAARGERO.WRPWI\\Documents\\Visual Studio 2008\\Projects\\Impromptu\\Impromptu.Performer.Tests\\bin\\Debug\\Impromptu.Performer.Tests.dll",
                "/TypeName:Impromptu.Performer.Tests.RunnerTests",
                string.Format("/MethodName:{0}", methodName)
            });

            Assert.Equal(returnValue, messages.Output[0]);
        }
		public void Runner_ValidateOutput(string methodName, string returnValue)
		{
			CapturedOutput messages = new CapturedOutput();
			Runner underTest = new Runner(messages);

			underTest.ExecuteMethod(new string[] { 
				// Yeah, yeah. the path is specific to my hard drive. But based upon my RedGreen experience. Nary a soul besides me will ever run the tests
				"/AssemblyPath:C:\\Users\\JAARGERO.WRPWI\\Documents\\Visual Studio 2008\\Projects\\Impromptu\\Impromptu.Performer.Tests\\bin\\Debug\\Impromptu.Performer.Tests.dll",
				"/TypeName:Impromptu.Performer.Tests.RunnerTests",
				string.Format("/MethodName:{0}", methodName)
			});

			Assert.Equal(returnValue, messages.Output[0]);
		}