public void TestMethod1() { //Arrange var calc = new ConverterLibrary(); // Act var result = calc.GetInt("42"); //Assert Assert.AreEqual(42, result); }
public void TestGetInt(string target, int expected) { //Arrange ConverterLibrary lib = new ConverterLibrary(); //Act var tmp = lib.GetInt(target); //Assert Assert.AreEqual(expected, tmp); }