-
Notifications
You must be signed in to change notification settings - Fork 525
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
6 changed files
with
25 additions
and
26 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
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,4 +1,5 @@ | ||
using Microsoft.Extensions.Primitives; | ||
using NewLife; | ||
using NewLife.Log; | ||
using Xunit; | ||
|
||
|
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,4 +1,4 @@ | ||
using System; | ||
using NewLife; | ||
using NewLife.Buffers; | ||
using NewLife.Data; | ||
using NewLife.Http; | ||
|
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,29 +1,28 @@ | ||
using System; | ||
using NewLife; | ||
using NewLife.Reflection; | ||
using Xunit; | ||
|
||
namespace XUnitTest.Reflection | ||
namespace XUnitTest.Reflection; | ||
|
||
public class AssemblyXTests | ||
{ | ||
public class AssemblyXTests | ||
[Fact] | ||
public void GetCompileTime() | ||
{ | ||
[Fact] | ||
public void GetCompileTime() | ||
{ | ||
{ | ||
var ver = "2.0.8153.37437"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-28 20:47:54".ToDateTime(), time); | ||
} | ||
{ | ||
var ver = "9.0.2022.427"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-27 00:00:00".ToDateTime(), time); | ||
} | ||
{ | ||
var ver = "9.0.2022.0427-beta0344"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-27 03:44:00".ToDateTime(), time.ToUniversalTime()); | ||
} | ||
var ver = "2.0.8153.37437"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-28 20:47:54".ToDateTime(), time); | ||
} | ||
{ | ||
var ver = "9.0.2022.427"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-27 00:00:00".ToDateTime(), time); | ||
} | ||
{ | ||
var ver = "9.0.2022.0427-beta0344"; | ||
var time = AssemblyX.GetCompileTime(ver); | ||
Assert.Equal("2022-04-27 03:44:00".ToDateTime(), time.ToUniversalTime()); | ||
} | ||
} | ||
} |
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,4 +1,4 @@ | ||
using System; | ||
using NewLife; | ||
using NewLife.Security; | ||
using NewLife.Web; | ||
using Xunit; | ||
|