예제 #1
0
 public void PrivateTestMethodIsNotRunnable()
 {
     TestAssert.IsNotRunnable(fixtureType, "PrivateTestMethod");
 }
예제 #2
0
 public void CanRunProtectedFixtureTearDown()
 {
     TestAssert.IsRunnable(typeof(ProtectedFixtureTearDown));
 }
예제 #3
0
 public void CannotRunFixtureTearDownWithReturnValue()
 {
     TestAssert.IsNotRunnable(typeof(FixtureTearDownWithReturnValue));
 }
예제 #4
0
 public void CanRunStaticFixtureSetUp()
 {
     TestAssert.IsRunnable(typeof(StaticFixtureSetUp));
 }
예제 #5
0
 public void CannotRunFixtureSetupWithParameters()
 {
     TestAssert.IsNotRunnable(typeof(FixtureSetUpWithParameters));
 }
예제 #6
0
 public void CanRunTestFixtureWithNoTests()
 {
     TestAssert.IsRunnable(typeof(FixtureWithNoTests));
 }
예제 #7
0
 public void CannotRunPrivateFixtureSetUp()
 {
     TestAssert.IsNotRunnable(typeof(PrivateFixtureSetUp));
 }
예제 #8
0
 public void TestMethodWithWrongNumberOfArgumentsProvidedIsNotRunnable()
 {
     TestAssert.ChildNotRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithWrongNumberOfArgumentsProvided));
 }
예제 #9
0
 public void TestMethodWithWrongArgumentTypesProvidedGivesError()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithWrongArgumentTypesProvided), ResultState.Error);
 }
예제 #10
0
 public void TestMethodWithoutParametersWithArgumentsProvidedIsNotRunnable()
 {
     TestAssert.ChildNotRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithoutParametersWithArgumentsProvided));
 }
예제 #11
0
 public void TestMethodWithArgumentsNotProvidedIsNotRunnable()
 {
     TestAssert.IsNotRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithArgumentsNotProvided));
 }
예제 #12
0
 public void StaticTestMethodIsRunnable()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.StaticTestMethod));
 }
예제 #13
0
 public void InstanceTestMethodIsRunnable()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.InstanceTestMethod));
 }
예제 #14
0
 public void TestMethodWithExpectedReturnTypeIsRunnable()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithExpectedReturnType));
 }
예제 #15
0
 public void CanRunMultipleOneTimeSetUp()
 {
     TestAssert.IsRunnable(typeof(MultipleFixtureSetUpAttributes));
 }
예제 #16
0
 public void StaticTestMethodWithArgumentsProvidedIsRunnable()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.StaticTestMethodWithArgumentsProvided));
 }
예제 #17
0
 public void CanRunMultipleOneTimeTearDown()
 {
     TestAssert.IsRunnable(typeof(MultipleFixtureTearDownAttributes));
 }
예제 #18
0
 public void CannotRunBadConstructor()
 {
     TestAssert.IsNotRunnable(typeof(BadCtorFixture));
 }
예제 #19
0
 public void CanRunStaticFixture()
 {
     TestAssert.IsRunnable(typeof(StaticFixtureWithoutTestFixtureAttribute));
 }
예제 #20
0
 public void TheoryWithNoArgumentsIsTreatedAsTest()
 {
     TestAssert.IsRunnable(fixtureType, "TheoryWithNoArguments");
 }
예제 #21
0
 public void CanRunProtectedFixtureSetUp()
 {
     TestAssert.IsRunnable(typeof(ProtectedFixtureSetUp));
 }
예제 #22
0
 public void TheoryWithNoDatapointsIsNotRunnable()
 {
     TestAssert.IsNotRunnable(fixtureType, "TheoryWithArgumentsButNoDatapoints");
 }
예제 #23
0
 public void CannotRunFixtureSetupWithReturnValue()
 {
     TestAssert.IsNotRunnable(typeof(FixtureSetUpWithReturnValue));
 }
예제 #24
0
 public void CannotRunConstructorWithArgsNotSupplied()
 {
     TestAssert.IsNotRunnable(typeof(NoDefaultCtorFixture));
 }
예제 #25
0
 public void CannotRunPrivateFixtureTearDown()
 {
     TestAssert.IsNotRunnable(typeof(PrivateFixtureTearDown));
 }
예제 #26
0
 public void CanRunConstructorWithArgsSupplied()
 {
     TestAssert.IsRunnable(typeof(FixtureWithArgsSupplied));
 }
예제 #27
0
 public void CanRunStaticFixtureTearDown()
 {
     TestAssert.IsRunnable(typeof(StaticFixtureTearDown));
 }
예제 #28
0
 public void CanRunFixtureDerivedFromAbstractDerivedTestFixture()
 {
     TestAssert.IsRunnable(typeof(DerivedFromAbstractDerivedTestFixture));
 }
예제 #29
0
 public void CannotRunFixtureTearDownWithParameters()
 {
     TestAssert.IsNotRunnable(typeof(FixtureTearDownWithParameters));
 }
예제 #30
0
 public void TestMethodWithNonConvertibleArgumentsGivesError()
 {
     TestAssert.IsRunnable(fixtureType, nameof(TestMethodSignatureFixture.TestMethodWithNonConvertibleArguments), ResultState.Error);
 }