FieldToString() публичный Метод

public FieldToString ( object from ) : string
from object
Результат string
Пример #1
0
        public void From_transaction_code()
        {
            // Arrange
            var c = new EnumConverter(typeof(TransactionCode));

            // Act
            var result = c.FieldToString(TransactionCode.CreditItem);

            // Assert
            Assert.AreEqual("50", result);
        }
Пример #2
0
        public void From_indicator()
        {
            // Arrange
            var c = new EnumConverter(typeof(Indicator));

            // Act
            var result = c.FieldToString(Indicator.NewOrVaried);

            // Assert
            Assert.AreEqual("N", result);
        }