You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

36 lines
740 B

// This file was auto-generated based on version 1.0.1 of the canonical data.
using Xunit;
public class ReverseStringTest
{
[Fact]
public void An_empty_string()
{
Assert.Equal("", ReverseString.Reverse(""));
}
[Fact]
public void A_word()
{
Assert.Equal("tobor", ReverseString.Reverse("robot"));
}
[Fact]
public void A_capitalized_word()
{
Assert.Equal("nemaR", ReverseString.Reverse("Ramen"));
}
[Fact]
public void A_sentence_with_punctuation()
{
Assert.Equal("!yrgnuh m'I", ReverseString.Reverse("I'm hungry!"));
}
[Fact]
public void A_palindrome()
{
Assert.Equal("racecar", ReverseString.Reverse("racecar"));
}
}