aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline.Tests/ErrorCodeTest.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-11-15 17:38:10 +0800
committerGitHub <noreply@github.com>2020-11-15 17:38:10 +0800
commitfa7b123be84afe020fc582535cc270e8cf24e85b (patch)
tree58d88a6412f718c1d6b304d7ee9580eaf1ab6c3a /BackEnd/Timeline.Tests/ErrorCodeTest.cs
parent379b4bafe982a8a8cd3158f0a9fa38a563dbdb57 (diff)
parent9f9f02c94f1248ecf02860a6c90c2ee1e2992c46 (diff)
downloadtimeline-fa7b123be84afe020fc582535cc270e8cf24e85b.tar.gz
timeline-fa7b123be84afe020fc582535cc270e8cf24e85b.tar.bz2
timeline-fa7b123be84afe020fc582535cc270e8cf24e85b.zip
Merge pull request #186 from crupest/unittest
Refactor unit tests.
Diffstat (limited to 'BackEnd/Timeline.Tests/ErrorCodeTest.cs')
-rw-r--r--BackEnd/Timeline.Tests/ErrorCodeTest.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline.Tests/ErrorCodeTest.cs b/BackEnd/Timeline.Tests/ErrorCodeTest.cs
index 258ebf4e..94e2a488 100644
--- a/BackEnd/Timeline.Tests/ErrorCodeTest.cs
+++ b/BackEnd/Timeline.Tests/ErrorCodeTest.cs
@@ -29,7 +29,7 @@ namespace Timeline.Tests
.Where(fi => fi.IsLiteral && !fi.IsInitOnly && fi.FieldType == typeof(int)))
{
var name = type.FullName + "." + field.Name;
- var value = (int)field.GetRawConstantValue();
+ var value = (int)field.GetRawConstantValue()!;
_output.WriteLine($"Find error code {name} , value is {value}.");
value.Should().BeInRange(1000_0000, 9999_9999, "Error code should have exactly 8 digits.");