forked from LeetCode-in-Net/LeetCode-in-Net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
36 changed files
with
55 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0001_two_sum { | ||
using System; | ||
|
||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
...Net.Tests/G0001_0100/S0003_longest_substring_without_repeating_characters/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0004_median_of_two_sorted_arrays/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0005_longest_palindromic_substring/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0006_zigzag_conversion/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0007_reverse_integer/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0008_string_to_integer_atoi/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
LeetCodeNet.Tests/G0001_0100/S0009_palindrome_number/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,21 @@ | ||
namespace LeetCodeNet.G0001_0100.S0009_palindrome_number { | ||
|
||
using Xunit; | ||
using System; | ||
|
||
public class SolutionTest { | ||
[Fact] | ||
public void IsPalindrome() { | ||
Assert.Equal(true, new Solution().IsPalindrome(121)); | ||
Assert.True(new Solution().IsPalindrome(121)); | ||
} | ||
|
||
[Fact] | ||
public void IsPalindrome2() { | ||
Assert.Equal(false, new Solution().IsPalindrome(-121)); | ||
Assert.False(new Solution().IsPalindrome(-121)); | ||
} | ||
|
||
[Fact] | ||
public void IsPalindrome3() { | ||
Assert.Equal(false, new Solution().IsPalindrome(10)); | ||
Assert.False(new Solution().IsPalindrome(10)); | ||
} | ||
} | ||
} |
11 changes: 5 additions & 6 deletions
11
LeetCodeNet.Tests/G0001_0100/S0010_regular_expression_matching/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,31 @@ | ||
namespace LeetCodeNet.G0001_0100.S0010_regular_expression_matching { | ||
|
||
using Xunit; | ||
using System; | ||
|
||
public class SolutionTest { | ||
[Fact] | ||
public void IsMatch() { | ||
Assert.Equal(false, new Solution().IsMatch("aa", "a")); | ||
Assert.False(new Solution().IsMatch("aa", "a")); | ||
} | ||
|
||
[Fact] | ||
public void IsMatch2() { | ||
Assert.Equal(true, new Solution().IsMatch("aa", "a*")); | ||
Assert.True(new Solution().IsMatch("aa", "a*")); | ||
} | ||
|
||
[Fact] | ||
public void IsMatch3() { | ||
Assert.Equal(true, new Solution().IsMatch("ab", ".*")); | ||
Assert.True(new Solution().IsMatch("ab", ".*")); | ||
} | ||
|
||
[Fact] | ||
public void IsMatch4() { | ||
Assert.Equal(true, new Solution().IsMatch("aab", "c*a*b")); | ||
Assert.True(new Solution().IsMatch("aab", "c*a*b")); | ||
} | ||
|
||
[Fact] | ||
public void IsMatch5() { | ||
Assert.Equal(false, new Solution().IsMatch("mississippi", "mis*is*p*.")); | ||
Assert.False(new Solution().IsMatch("mississippi", "mis*is*p*.")); | ||
} | ||
} | ||
} |
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0048_rotate_image/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0048_rotate_image { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0049_group_anagrams/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0049_group_anagrams { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0051_n_queens { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0053_maximum_subarray/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0055_jump_game { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0056_merge_intervals/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0056_merge_intervals { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0062_unique_paths/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0062_unique_paths { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0064_minimum_path_sum/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0070_climbing_stairs/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0070_climbing_stairs { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0072_edit_distance/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0072_edit_distance { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0073_set_matrix_zeroes/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0074_search_a_2d_matrix/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0075_sort_colors { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0001_0100/S0076_minimum_window_substring/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0001_0100.S0079_word_search { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
6 changes: 3 additions & 3 deletions
6
LeetCodeNet.Tests/G0101_0200/S0102_binary_tree_level_order_traversal/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0104_maximum_depth_of_binary_tree/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
...0101_0200/S0105_construct_binary_tree_from_preorder_and_inorder_traversal/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0114_flatten_binary_tree_to_linked_list/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0121_best_time_to_buy_and_sell_stock/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0124_binary_tree_maximum_path_sum/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0128_longest_consecutive_sequence/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0131_palindrome_partitioning/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0136_single_number/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
namespace LeetCodeNet.G0101_0200.S0136_single_number { | ||
|
||
using System; | ||
using Xunit; | ||
|
||
public class SolutionTest { | ||
|
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0101_0200/S0138_copy_list_with_random_pointer/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 0 additions & 1 deletion
1
LeetCodeNet.Tests/G0401_0500/S0416_partition_equal_subset_sum/SolutionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.