Skip to content

Commit

Permalink
⚗️ Commit for Testing CI System (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
soo-bak committed Jul 7, 2024
1 parent 0260acd commit 8b8f5d6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
3 changes: 2 additions & 1 deletion Tests/Utilities/StringExtensionTests.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NUnit.Framework;
using SUL;

// XXX Consider namespace for classification structure in terms of hierarchy.
namespace SUL_Tests.Utilities {
Expand All @@ -15,7 +16,7 @@ public void Reverse_WithNonEmptyString_ReturnsReversedString() {

// Act
string result = original.Reverse();

// Assert
Assert.AreEqual(expected, result);
}
Expand Down
18 changes: 12 additions & 6 deletions Utilities/StringExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
using System;

public static class StringExtensions {
public static string Reverse(this string str) {
if (string.IsNullOrEmpty(str)) return str;
namespace SUL {

char[] charArr = str.ToCharArray();
Array.Reverse(charArr);
return new string(charArr);
public static class StringExtensions {
public static string Reverse(this string str) {
if (string.IsNullOrEmpty(str))
return str;

char[] charArr = str.ToCharArray();
Array.Reverse(charArr);

return new string(charArr);
}
}

}

0 comments on commit 8b8f5d6

Please sign in to comment.