public void NullableBooleanArgumentsAreSuppliedAutomatically() { Test test = TestBuilder.MakeParameterizedMethodSuite(fixtureType, nameof(TheoryFixture.TestWithNullableBooleanArguments)); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(9)); }
public void WithNullableEnumArgumentsHasValuesSuppliedAutomatically() { Test test = TestBuilder.MakeParameterizedMethodSuite(nestedType, nameof(TheoryFixture.NestedWhileSearchingInDeclaringType.WithNullableEnumAsArgument)); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(17)); }
public void TheoryWithDatapointsIsRunnable() { Test test = TestBuilder.MakeParameterizedMethodSuite(fixtureType, nameof(TheoryFixture.TheoryWithArgumentsAndDatapoints)); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(9)); }
public void WithDatapointAndAttributeDataIsRunnable() { Test test = TestBuilder.MakeParameterizedMethodSuite(nestedType, nameof(TheoryFixture.NestedWhileSearchingInDeclaringType.WithBothDatapointAndAttributeData)); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(6)); }
public void DatapointAndAttributeDataMayBeCombined() { Test test = TestBuilder.MakeParameterizedMethodSuite(fixtureType, "TestWithBothDatapointAndAttributeData"); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(6)); }
public void BooleanArgumentsAreSuppliedAutomatically() { Test test = TestBuilder.MakeParameterizedMethodSuite(fixtureType, "TestWithBooleanArguments"); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(4)); }
public void EnumArgumentsAreSuppliedAutomatically() { Test test = TestBuilder.MakeTestCase(fixtureType, "TestWithEnumAsArgument"); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(3)); }
public void TheoryWithDatapointsIsRunnable() { Test test = TestBuilder.MakeTestCase(fixtureType, "TheoryWithArgumentsAndDatapoints"); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(9)); }
public void AllValuesMayBeSuppliedByAttributes() { // NOTE: This test was failing with a count of 8 because both // TheoryAttribute and CombinatorialAttribute were adding cases. // Solution is to make TheoryAttribute a CombiningAttribute so // that no extra attribute is added to the method. Test test = TestBuilder.MakeParameterizedMethodSuite(fixtureType, nameof(TheoryFixture.TestWithAllDataSuppliedByAttributes)); TestAssert.IsRunnable(test); Assert.That(test.TestCaseCount, Is.EqualTo(4)); }
public void EnumArgumentsAreSuppliedAutomatically() { Test test = TestBuilder.MakeTestCase(fixtureType, "TestWithEnumAsArgument"); TestAssert.IsRunnable(test); #if CLR_2_0 || CLR_4_0 Assert.That(test.TestCaseCount, Is.EqualTo(16)); #else Assert.That(test.TestCaseCount, Is.EqualTo(15)); // No GenericParameter member #endif Assert.That(test.TestCaseCount, Is.EqualTo(TypeHelper.GetEnumValues(typeof(AttributeTargets)).Length)); }
public void CanRunStaticFixtureSetUp() { TestAssert.IsRunnable(typeof(StaticFixtureSetUp), ResultState.Success); }
public void CanRunProtectedFixtureSetUp() { TestAssert.IsRunnable(typeof(ProtectedFixtureSetUp), ResultState.Success); }
public void CanRunProtectedFixtureTearDown() { TestAssert.IsRunnable(typeof(ProtectedFixtureTearDown)); }
public void CanRunProtectedFixtureSetUp() { TestAssert.IsRunnable(typeof(ProtectedFixtureSetUp)); }
public void CanRunTestFixtureWithNoTests() { TestAssert.IsRunnable(typeof(FixtureWithNoTests)); }
public void CanRunMultipleOneTimeSetUp() { TestAssert.IsRunnable(typeof(MultipleFixtureSetUpAttributes)); }
public void CanRunConstructorWithArgsSupplied() { TestAssert.IsRunnable(typeof(FixtureWithArgsSupplied)); }
public void CanRunProtectedFixtureTearDown() { TestAssert.IsRunnable(typeof(ProtectedFixtureTearDown), ResultState.Success); }
public void CanRunStaticFixtureTearDown() { TestAssert.IsRunnable(typeof(StaticFixtureTearDown), ResultState.Success); }
public void CanRunConstructorWithArgsSupplied() { TestAssert.IsRunnable(typeof(FixtureWithArgsSupplied), ResultState.Success); }
public void CanRunFixtureDerivedFromAbstractDerivedTestFixture() { TestAssert.IsRunnable(typeof(DerivedFromAbstractDerivedTestFixture)); }
public void CanRunMultipleSetUp() { TestAssert.IsRunnable(typeof(MultipleSetUpAttributes), ResultState.Success); }
public void CanRunMultipleOneTimeTearDown() { TestAssert.IsRunnable(typeof(MultipleFixtureTearDownAttributes)); }
public void CanRunFixtureDerivedFromAbstractDerivedTestFixture() { TestAssert.IsRunnable(typeof(DerivedFromAbstractDerivedTestFixture), ResultState.Success); }
public void CanRunStaticFixture() { TestAssert.IsRunnable(typeof(StaticFixtureWithoutTestFixtureAttribute)); }
public void CanRunMultipleTestFixtureTearDown() { TestAssert.IsRunnable(typeof(MultipleFixtureTearDownAttributes), ResultState.Success); }
public void CanRunStaticFixtureSetUp() { TestAssert.IsRunnable(typeof(StaticFixtureSetUp)); }
public void CanRunTestFixtureWithNoTests() { TestAssert.IsRunnable(typeof(FixtureWithNoTests), ResultState.Success); }
public void CanRunStaticFixtureTearDown() { TestAssert.IsRunnable(typeof(StaticFixtureTearDown)); }
public void CanRunStaticFixture() { TestAssert.IsRunnable(typeof(StaticFixtureWithoutTestFixtureAttribute), ResultState.Success); }