예제 #1
0
        public void BooleanConstant_PostMutation_FalseToTrue()
        {
            // Arrange
            var binary   = DllTestHelper.CompileTestBinary(folder);
            var expected = true;

            // Act
            var mutatedBinary =
                DllTestHelper.MutateField <BooleanConstantMutationAnalyzer>(binary, ConstantBoolFalseName, true);

            using (var binaryInteractor = new DllTestHelper(mutatedBinary))
            {
                var actual = binaryInteractor.GetField(nameSpace, ConstantBoolTrueName);

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