예제 #1
0
        public void Boolean_Variable_PostMutation(string methodName, bool expected, bool simplify)
        {
            // Arrange
            var binary = DllTestHelper.CompileTestBinary(_folder);

            // Act
            var mutatedBinary =
                DllTestHelper.MutateMethodVariables <VariableMutationAnalyzer>(binary, methodName, simplify);

            using (var binaryInteractor = new DllTestHelper(mutatedBinary))
            {
                var actual =
                    (bool)binaryInteractor.DynamicMethodCall(_nameSpace, methodName.FirstCharToUpper(),
                                                             new object[] { });

                // Assert
                Assert.AreEqual(expected, actual);
            }
        }