Beispiel #1
0
        public void ShouldNotMutateEmptyInterpolatedString(string expression)
        {
            var node    = GetInterpolatedString(expression);
            var mutator = new InterpolatedStringMutator();

            var result = mutator.ApplyMutations(node).ToList();

            result.ShouldBeEmpty();
        }
Beispiel #2
0
        public void ShouldMutate(string expression)
        {
            var node    = GetInterpolatedString(expression);
            var mutator = new InterpolatedStringMutator();

            var result = mutator.ApplyMutations(node).ToList();

            result.ShouldHaveSingleItem()
            .ReplacementNode.ShouldBeOfType <InterpolatedStringExpressionSyntax>()
            .Contents.ShouldBeEmpty();
        }
Beispiel #3
0
        public void ShouldBeMutationLevelStandard()
        {
            var target = new InterpolatedStringMutator();

            target.MutationLevel.ShouldBe(MutationLevel.Standard);
        }