IronRuby.Tests.Tests.Test_Translate C# (CSharp) Method

Test_Translate() private method

private Test_Translate ( byte bself, RubyEncoding eself, byte bfrom, RubyEncoding efrom, byte bto, RubyEncoding eto, byte expected, RubyEncoding expectedEncoding ) : void
bself byte
eself RubyEncoding
bfrom byte
efrom RubyEncoding
bto byte
eto RubyEncoding
expected byte
expectedEncoding RubyEncoding
return void
        private void Test_Translate(
            byte[]/*!*/ bself, RubyEncoding/*!*/ eself,
            byte[]/*!*/ bfrom, RubyEncoding/*!*/ efrom,
            byte[]/*!*/ bto, RubyEncoding/*!*/ eto, 
            byte[]/*!*/ expected, RubyEncoding/*!*/ expectedEncoding) {

            var self = MutableString.CreateBinary(bself, eself);
            var from = MutableString.CreateBinary(bfrom, efrom);
            var to = MutableString.CreateBinary(bto, eto);

            var result = MutableStringOps.GetTranslated(self, from, to);
            Assert(result.Encoding == expectedEncoding);
            var b = result.ToByteArray();
            Assert(b.ValueEquals(expected));
        }
Tests