コード例 #1
0
        public void Should_Reverse_Word()
        {
            // Arrange (przygotuj)
            string         word           = "ABC";
            string         reversedWord   = "CBA";
            ReverseService reverseService = new ReverseService();
            // Act (wykonaj)
            string result = reverseService.ReverseWord(word);

            // Assert (sprawdź)
            Assert.AreEqual(result, reversedWord);
        }
コード例 #2
0
        public void Should_Reverse_Word()
        {
            // Arrange
            string         word           = "ABC";
            string         reversedWord   = "CBA";
            ReverseService reverseService = new ReverseService();

            // Act
            string result = reverseService.ReverseWord(word);

            // Assert
            Assert.AreEqual(result, reversedWord);
        }