예제 #1
0
        public void TestMethod1()
        {
            //Arrange
            var calc = new ConverterLibrary();
            // Act
            var result = calc.GetInt("42");

            //Assert
            Assert.AreEqual(42, result);
        }
예제 #2
0
        public void TestGetInt(string target, int expected)
        {
            //Arrange
            ConverterLibrary lib = new ConverterLibrary();

            //Act
            var tmp = lib.GetInt(target);

            //Assert
            Assert.AreEqual(expected, tmp);
        }