public void RussianConverter_ConvertNumberTest_ArgumentException(ulong input) { //Arrange RussianConverter converter = new RussianConverter(); //Act string actual = converter.ConvertNumber(input); }
public void RussianConverter_ConvertNumberTest_ZeroTest() { // Arrange ulong input = 0; string expected = "ноль"; RussianConverter converter = new RussianConverter(); // Act string actual = converter.ConvertNumber(input); // Assert Assert.AreEqual(expected, actual); }
/// <summary> /// Supporting method for testing of ConvertNumber method with different test data /// </summary> public void TestDifferentData() { // Arrange ulong input = Convert.ToUInt64(TestContext.DataRow["input"]); string expected = Convert.ToString(TestContext.DataRow["expectedRU"]); RussianConverter converter = new RussianConverter(); // Act string actual = converter.ConvertNumber(input); // Assert Assert.AreEqual(expected, actual); }