Skip to content

Commit

Permalink
默认扩展命名空间使用NewLife
Browse files Browse the repository at this point in the history
  • Loading branch information
nnhy committed Jan 9, 2025
1 parent 3e78426 commit a84ba19
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 26 deletions.
3 changes: 2 additions & 1 deletion Samples/Zero.HttpServer/Program.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using NewLife.Caching;
using NewLife;
using NewLife.Caching;
using NewLife.Caching.Services;
using NewLife.Http;
using NewLife.Log;
Expand Down
1 change: 1 addition & 0 deletions XUnitTest.Core/Common/UtilityTests.cs
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;

Expand Down
2 changes: 1 addition & 1 deletion XUnitTest.Core/Http/WebSocketMessageTests.cs
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;
Expand Down
39 changes: 19 additions & 20 deletions XUnitTest.Core/Reflection/AssemblyXTests.cs
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());
}
}
}
4 changes: 1 addition & 3 deletions XUnitTest.Core/Serialization/JsonWriterTests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using NewLife;
using NewLife.Data;
using NewLife.Log;
using NewLife.Serialization;
Expand Down
2 changes: 1 addition & 1 deletion XUnitTest.Core/Web/JwtBuilderTests.cs
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;
Expand Down

0 comments on commit a84ba19

Please sign in to comment.