public void Convert_UA(long value, string expected) { // Arrange ConverterToText converter = new ConverterToTextUA(); // Act string real = converter.Convert(value); // Assert Assert.AreEqual(real, expected); }
public ConverterToText GetConverter(Local local) { ConverterToText converter; switch (local) { case Local.EN: converter = new ConverterToTextEN(); break; case Local.RU: converter = new ConverterToTextRU(); break; case Local.UA: converter = new ConverterToTextUA(); break; default: converter = null; break; } return(converter); }