コード例 #1
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action,
                      string name, Exception exception)
 {
     this.action    = action;
     this.name      = name;
     this.exception = exception;
 }
コード例 #2
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action,
                      string name, Test test)
 {
     this.action = action;
     this.name   = name;
     this.tests  = new Test[] { test };
 }
コード例 #3
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, string name )
		{
			this.action = action;
			this.name = name;
		}
コード例 #4
0
		// TestFinished, SuiteFinished, RunFinished
		public TestEventArgs( TestAction action, TestResult testResult )
		{
			Debug.Assert( action == TestAction.TestFinished || action == TestAction.SuiteFinished ||
				action == TestAction.RunFinished,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.testResult = testResult;
		}
コード例 #5
0
		// TestOutput
		public TestEventArgs( TestAction action, TestOutput testOutput )
		{
			Debug.Assert( action == TestAction.TestOutput,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.testOutput = testOutput;
		}
コード例 #6
0
		// ProjectLoading, ProjectLoaded, ProjectUnloading, ProjectUnloaded,
		// TestLoading, TestUnloading, TestUnloaded, TestReloading
		public TestEventArgs( TestAction action, string name )
		{
			Debug.Assert( 
				action == TestAction.ProjectLoading || action == TestAction.ProjectLoaded ||
				action == TestAction.ProjectUnloading || action == TestAction.ProjectUnloaded ||
				action == TestAction.TestLoading || action == TestAction.TestUnloading ||
				action == TestAction.TestUnloaded || action == TestAction.TestReloading,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.name = name;
		}
コード例 #7
0
		// ProjectLoadFailed, ProjectUnloadFailed, TestLoadFailed, TestUnloadFailed, TestReloadFailed, TestException
		public TestEventArgs( TestAction action,
			string name, Exception exception )
		{
			Debug.Assert(
				action == TestAction.ProjectLoadFailed || action == TestAction.ProjectUnloadFailed ||
				action == TestAction.TestLoadFailed || action == TestAction.TestUnloadFailed ||
				action == TestAction.TestReloadFailed || action == TestAction.TestException, 
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.name = name;
			this.exception = exception;
		}
コード例 #8
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, Test test )
		{
			this.action = action;
			this.tests = new Test[] { test };
			this.count = test.CountTestCases();
		}
コード例 #9
0
		private void CheckEvent( TestAction action, TestResult result )
		{
			CheckEvent( action );
			Assert.AreEqual( TESTNAME, result.Name );
		}
コード例 #10
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, string name)
 {
     this.action = action;
     this.name   = name;
 }
コード例 #11
0
		private void CheckEvent( TestAction action, string fileName, int testCount )
		{
			CheckEvent( action, fileName );
			Assert.AreEqual( testCount, ((TestEventArgs)catcher.Events[0]).TestCount );
		}
コード例 #12
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, Test[] tests, int count) 
		{
			this.action = action;
			this.tests = tests;
			this.count = count;
		}
コード例 #13
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, 
			string name, Test test )
		{
			this.action = action;
			this.name = name;
			this.tests = new Test[] { test };
		}
コード例 #14
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, Exception exception )
		{
			this.action = action;
			this.exception = exception;
		}
コード例 #15
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, TestResult[] results )
		{
			this.action = action;
			this.results = results;
		}
コード例 #16
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action, TestResult result )
		{
			this.action = action;
			this.results = new TestResult[] { result };
		}
コード例 #17
0
		private void CheckEvent( TestAction action )
		{
			Assert.AreEqual( 1, catcher.Events.Count );
			Assert.AreEqual( action, ((TestEventArgs)catcher.Events[0]).Action );
		}
コード例 #18
0
		private void CheckEvent( TestAction action, string fileName, Exception exception )
		{
			CheckEvent( action, fileName );
			Assert.AreEqual( MESSAGE, ((TestEventArgs)catcher.Events[0]).Exception.Message );
		}
コード例 #19
0
		private void CheckEvent( TestAction action, string fileName )
		{
			CheckEvent( action );
			Assert.AreEqual( fileName, ((TestEventArgs)catcher.Events[0]).Name );
		}
コード例 #20
0
ファイル: TestEventArgs.cs プロジェクト: alesliehughes/olive
		public TestEventArgs( TestAction action,
			string name, Exception exception )
		{
			this.action = action;
			this.name = name;
			this.exception = exception;
		}
コード例 #21
0
		private void CheckEvent( TestAction action, string fileName, TestInfo test )
		{
			CheckEvent( action, fileName );
			Assert.AreEqual( TESTNAME, ((TestEventArgs)catcher.Events[0]).Test.TestName.Name );
		}
コード例 #22
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, Test test)
 {
     this.action = action;
     this.tests  = new Test[] { test };
     this.count  = test.CountTestCases();
 }
コード例 #23
0
		private void CheckEvent( TestAction action, TestName testName )
		{
			CheckEvent( action );
			Assert.AreEqual( TESTNAME, ((TestEventArgs)catcher.Events[0]).TestName.Name );
		}
コード例 #24
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, TestResult result)
 {
     this.action  = action;
     this.results = new TestResult[] { result };
 }
コード例 #25
0
		private void CheckEvent( TestAction action, Exception exception )
		{
			CheckEvent( TestAction.RunFinished );
			Assert.AreEqual( MESSAGE, ((TestEventArgs)catcher.Events[0]).Exception.Message );
		}
コード例 #26
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, TestResult[] results)
 {
     this.action  = action;
     this.results = results;
 }
コード例 #27
0
		public TestEventArgs( TestAction action, string name, int testCount )
		{
			Debug.Assert( action == TestAction.RunStarting,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.name = name;
			this.testCount = testCount;
		}
コード例 #28
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, Exception exception)
 {
     this.action    = action;
     this.exception = exception;
 }
コード例 #29
0
		// TestStarting, SuiteStarting
		public TestEventArgs( TestAction action, TestName testName )
		{
			Debug.Assert( action == TestAction.TestStarting || action == TestAction.SuiteStarting,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.testName = testName;
		}
コード例 #30
0
ファイル: TestEventArgs.cs プロジェクト: montecarlo1/Projects
 public TestEventArgs(TestAction action, Test[] tests, int count)
 {
     this.action = action;
     this.tests  = tests;
     this.count  = count;
 }
コード例 #31
0
		// RunFinished
		public TestEventArgs( TestAction action, Exception exception )
		{
			Debug.Assert( action == TestAction.RunFinished,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.exception = exception;
		}
コード例 #32
0
 private static int SortByTargetDescending(TestAction x, TestAction y)
 {
     return(y.Targets.CompareTo(x.Targets));
 }
コード例 #33
0
		// TestLoaded, TestReloaded
		public TestEventArgs( TestAction action, 
			string name, ITest test )
		{
			Debug.Assert( 
				action == TestAction.TestLoaded || action == TestAction.TestReloaded,
				"Invalid TestAction argument to TestEventArgs constructor" );

			this.action = action;
			this.name = name;
			this.test = test;
			if ( test != null )
				this.testCount = test.TestCount;
		}
コード例 #34
0
ファイル: ActionsHelper.cs プロジェクト: rmterra/AutoTest.Net
 private static int SortByTargetDescending(TestAction x, TestAction y)
 {
     return y.Targets.CompareTo(x.Targets);
 }