public void WillNotReplaceValuesNotMapped()
        {
            const string input  = "this will not be replaced";
            var          step   = new MappingStep(MappingTable.Create(Mapping.B1));
            var          output = step.Run(input);

            output.ShouldBe(input);
        }
예제 #2
0
        public void WillNotReplaceValuesNotMapped()
        {
            var input  = "this will not be replaced";
            var step   = new MappingStep(MappingTable.Create(Tables.B_1));
            var output = step.Run(input);

            Assert.Equal(input, output);
        }
        public void WillReplaceWithMultipleCharacters()
        {
            var input    = $"this value: {Convert.ToChar(0x00DF)} will be replaced";
            var expected = $"this value: {Convert.ToChar(0x0073)}{Convert.ToChar(0x0073)} will be replaced";
            var step     = new MappingStep(MappingTable.Create(Mapping.B2));
            var output   = step.Run(input);

            output.ShouldBe(expected);
        }
        public void WillReplaceValues()
        {
            var input    = $"this value: {Convert.ToChar(0x0041)} will be replaced";
            var expected = $"this value: {Convert.ToChar(0x0061)} will be replaced";
            var step     = new MappingStep(MappingTable.Create(Mapping.B2));
            var output   = step.Run(input);

            output.ShouldBe(expected);
        }
        public void WillReplaceValuesMappedToNothing()
        {
            var          input    = $"this value: {Convert.ToChar(0x180B)} will be replaced";
            const string expected = "this value:  will be replaced";
            var          step     = new MappingStep(MappingTable.Create(Mapping.B1));
            var          output   = step.Run(input);

            output.ShouldBe(expected);
        }
예제 #6
0
        public void WillReplaceValuesWithMultipleReplacements()
        {
            var input    = "this value: " + Convert.ToChar(0x00DF) + " will be replaced";
            var expected = "this value: " + Convert.ToChar(0x0073) + Convert.ToChar(0x0073) + " will be replaced";
            var step     = new MappingStep(MappingTable.Create(Tables.B_2));
            var output   = step.Run(input);

            Assert.Equal(expected, output);
        }
예제 #7
0
        public void WillReplaceValuesMappedToNothing()
        {
            var input    = "this value: " + Convert.ToChar(0x180B) + " will be replaced";
            var expected = "this value:  will be replaced";
            var step     = new MappingStep(MappingTable.Create(Tables.B_1));
            var output   = step.Run(input);

            Assert.Equal(expected, output);
        }