コード例 #1
0
        public void Initialize()
        {
            MethodInfo method = GetIterativeTestMethod();
              string[] current = new string[] { "My Current Parameter" };

              IterativeTestCase testCase = new IterativeTestCase(method, current);

              Assert.That(testCase.Arguments, Is.SameAs(current));
              Assert.That(testCase.Method, Is.SameAs(method));
              Assert.That(testCase.FixtureType, Is.SameAs(typeof(TestClass)));
        }
コード例 #2
0
        public void Initialize_TestName()
        {
            MethodInfo method = GetIterativeTestMethod();
              string[] current = new string[] { "My Current Parameter" };

              IterativeTestCase testCase = new IterativeTestCase( method, current );

              string expectedTestName = Method_IterativeTestMethod + "(My Current Parameter)";
              string expectedFullTestName = typeof( TestClass ).FullName + "." + expectedTestName;
              Assert.That( testCase.TestName.Name, Is.EqualTo( expectedTestName ) );
              Assert.That( testCase.TestName.FullName, Is.EqualTo( expectedFullTestName ) );
        }