コード例 #1
0
        public void FireTestStepFinishedEventWithTestResultCreatesGallioTestDataWithExpectedFullName()
        {
            testRunnerEvents.FireTestStepFinishedEvent("MyNamespace/MyTests/MyTestMethod");

            string expectedFullName = "MyNamespace/MyTests/MyTestMethod";
            string actualFullName   = testStepFinishedEventArgs.Test.FullName;

            Assert.AreEqual(expectedFullName, actualFullName);
        }
コード例 #2
0
		public void FiringTestStepFinishedEventWritesTestResultNameToTestResultsWriter()
		{
			string testName = "MyNamespace.MyTests.MyTestMethod";
			testRunnerEvents.FireTestStepFinishedEvent("MyNamespace.MyTests.MyTestMethod");
			
			Assert.AreEqual(testName, writer.FirstTestResult.Name);
		}