AsciiImportExport.Tests.SpecialityBankFormatTest.RightJustifiedValues_AreFilledUpWithFillChar C# (CSharp) Метод

RightJustifiedValues_AreFilledUpWithFillChar() приватный Метод

private RightJustifiedValues_AreFilledUpWithFillChar ( ) : void
Результат void
        public void RightJustifiedValues_AreFilledUpWithFillChar()
        {
            DocumentFormatDefinitionBuilder<ChequeRow> definition = GetDefinition();

            var record = new ChequeRow()
                             {
                                 AccountNo = 123456789,
                                 RecordType = ChequeRow.RecordTypeEnum.Outstanding,
                                 AmountCents = 152,
                                 SerialNumber = 123,
                                 Date = new DateTime(2013, 12, 31)
                             };
            string resultString = definition.Build().Export(new ChequeRow[] {record});
            Assert.That(resultString,
                        Is.EqualTo("000123456789O000000012300000000015220131231" +
                                   new string(' ', 1 + 50 + 16 + 256 + 16)));
        }