diff options
author | crupest <crupest@outlook.com> | 2020-11-13 17:08:20 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-11-13 17:08:20 +0800 |
commit | bd2462f2bc964839e9b64f167dfa47abb3f9afe6 (patch) | |
tree | 9aefc6cb0f10ac9e8e90d66d115849469813a08f /BackEnd/Timeline.Tests/ErrorCodeTest.cs | |
parent | 379b4bafe982a8a8cd3158f0a9fa38a563dbdb57 (diff) | |
download | timeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.tar.gz timeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.tar.bz2 timeline-bd2462f2bc964839e9b64f167dfa47abb3f9afe6.zip |
...
Diffstat (limited to 'BackEnd/Timeline.Tests/ErrorCodeTest.cs')
-rw-r--r-- | BackEnd/Timeline.Tests/ErrorCodeTest.cs | 2 |
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.");
|