public void MixedAdd_MutationTests()
 {
     MutationTestBuilder <SimpleCalculator> .For("MixedAdd")
     .With <ParameterAndVariableReadSubstitutionTurtle>()
     .With <VariableWriteSubstitutionTurtle>()
     .Run();
 }
 public void Team_Mutation_Tests()
 {
     MutationTestBuilder <Team>
     .For("register")
     .WriteReportTo("TeamMutationReport.xml")
     .UsingRunner <MSTestTestRunner>()
     .Run();
 }
 public void Requirements_Mutation_Tests()
 {
     MutationTestBuilder <Requirements>
     .For("retrieve")
     .WriteReportTo("RequirementsMutationReport.xml")
     .UsingRunner <MSTestTestRunner>()
     .Run();
 }
Exemplo n.º 4
0
        private bool RunTests(string targetAssemblyLocation, string targetClass, string targetMethod, TestsDispatcher dispatcher, Type[] parameterTypes = null)
        {
            var parameterList = parameterTypes == null || parameterTypes.Length == 0
                                    ? null
                                    : String.Join(", ", parameterTypes.Select(t => t.Name).ToArray());

            OutputMethod(targetClass, targetMethod, parameterList);
            MutationTest mutationTest =
                parameterTypes == null
                    ? (MutationTest)MutationTestBuilder.For(targetAssemblyLocation, targetClass, targetMethod, dispatcher, _testMethods)
                    : (MutationTest)MutationTestBuilder.For(targetAssemblyLocation, targetClass, targetMethod, dispatcher, _testMethods, parameterTypes);

            mutationTest.TestAssemblyLocation = _testAssemblyLocation;
            var result = BuildAndRunMutationTest(mutationTest);

            return(result);
        }
 public void Sum_MutationTests()
 {
     MutationTestBuilder <SimpleCalculator> .For("Sum")
     .Run();
 }
 public void Divide_MutationTests()
 {
     MutationTestBuilder <SimpleCalculator> .For("Divide")
     .Run();
 }
 public void AddViaMethodChainAndLinq_MutationTests()
 {
     MutationTestBuilder <SimpleCalculator> .For("AddViaMethodChainAndLinq")
     .Run();
 }
 public void MultiAdd_MutationTests()
 {
     MutationTestBuilder <SimpleCalculator> .For("MultiAdd")
     .Run();
 }
 public void TryParse_MutationTests()
 {
     MutationTestBuilder <Expression> .For("TryParse")
     .Run(1);
 }
Exemplo n.º 10
0
 public void FixtureTearDown()
 {
     MutationTestBuilder.Clear();
 }
 public void ValidateValue_MutationTests()
 {
     MutationTestBuilder <ExpressionSectionBase> .For("ValidateValue")
     .Run();
 }
 public SimpleCalculatorTests()
 {
     MutationTestBuilder.UseRunner <xUnitTestRunner>();
 }
Exemplo n.º 13
0
 public void IsMatch_MutationTests()
 {
     MutationTestBuilder <Expression> .For("IsMatch", new[] { typeof(DateTime) })
     .Run();
 }
Exemplo n.º 14
0
 public void TestCase9()
 {
     MutationTestBuilder <Program>
     .For("triangle")
     .Run();
 }
 public void TryParse_MutationTests()
 {
     MutationTestBuilder <EveryOccurenceExpressionSection> .For("TryParse")
     .Run();
 }
 public void TryParse_MutationTests()
 {
     MutationTestBuilder <DayOfWeekExpressionSection> .For("TryParse")
     .Run();
 }
Exemplo n.º 17
0
 public void TestMethod1()
 {
     MutationTestBuilder <SampleMathUtility>
     .For("Max")
     .Run();
 }
Exemplo n.º 18
0
 public void StaticIsMatch_MutationTests()
 {
     MutationTestBuilder <Expression> .For("IsMatch", new[] { typeof(DateTime), typeof(IEnumerable <Expression>) })
     .Run();
 }
 public void Dispose()
 {
     MutationTestBuilder.Clear();
 }
Exemplo n.º 20
0
 public void TestInitialize()
 {
     MutationTestBuilder.UseRunner <MSTestTestRunner>();
 }
Exemplo n.º 21
0
 public void TestCleanup()
 {
     MutationTestBuilder.Clear();
 }
Exemplo n.º 22
0
 public void FixtureSetUp()
 {
     MutationTestBuilder.UseRunner <GallioTestRunner>();
 }