示例#1
0
        public void GetHello()
        {
            //Arrange
            UnitTestMethods sut = new UnitTestMethods();
            //Act
            string actual = sut.GetHello();

            //Assert
            Assert.Equal("Hello!", actual);
        }
        public void YourMethodName()
        {
            //Arrange
            var hello = new UnitTestMethods();
            //Act
            var actual = hello.GetHello();

            //Assert
            Assert.Equal("Hello", actual);
        }
        public void GetHello()
        {
            //Arrange
            UnitTestMethods challenger = new UnitTestMethods();
            //Act
            string actual = challenger.GetHello();

            //Assert
            Assert.Equal("Hello", actual);
        }
        public void GetHello()
        {
            //Arrange

            var test = new UnitTestMethods();

            //Act

            var actual = test.GetHello();

            //Assert

            Assert.Equal("Hello", actual);
        }